1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00
Commit Graph

315 Commits

Author SHA1 Message Date
Gymnasiast
d5f6a5b285 Replace context_load_park_from_file() with object equivalent 2022-10-08 20:12:35 +02:00
duncanspumpkin
16581e9288 Address snakes in mapgen and map animation 2022-10-05 20:22:51 +01:00
Ted John
bf85e6de4c Implement loading / saving asset pack config 2022-10-01 13:06:55 +01:00
Ted John
331a5961b1 Implement asset packs for audio 2022-10-01 13:06:52 +01:00
73
b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00
Michael Steenbeek
8709b7800f Merge pull request #17878 from Gymnasiast/feature/flag15-import
Close #6326: Add support for RCTC SV6 files with 15000 entities
2022-09-04 14:10:48 +02:00
spacek531
8c8dc632b8 Implement #17806: Warn user if fallback images are used
Warns user on the object debug info, when closing the object selection window after selecting objects, and when opening a park.
2022-09-03 13:56:23 +00:00
Gymnasiast
624d6ee752 Remove UnsupportedRCTCFlagException 2022-08-31 22:44:12 +02:00
Hielke Morsink
7f29e4e39c Make rct_windowclass strong type WindowClass
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Michał Janiszewski
0be5c9d720 Register park being loaded for crash upload 2022-08-04 19:48:47 +02:00
Gymnasiast
d3fd31c611 Rename rct_string_id to StringId 2022-07-31 22:30:13 +02:00
Michael Steenbeek
2b859c7099 Remove __ENABLE_LIGHTFX__ define
It is already enabled for all our builds, and upcoming changes to RTD would add a slew more.
Discussed in team chat with Duncan and Hielke.
2022-07-28 21:34:02 +00:00
Ted John
a2e6691ac2 Add new audio objects for loading sounds 2022-05-23 22:24:56 +01:00
Ted John
ed00228e58 Log errors to stderr if park load fails 2022-05-15 20:58:30 +02:00
Gymnasiast
fe9b211894 Allow park files v0 2022-04-24 16:12:25 +02:00
Ted John
3c09e60273 Add error if park version is too old 2022-04-23 15:28:13 +01:00
Ted John
65878dda81 Warn or error if incompatible park version is loaded 2022-04-23 14:45:40 +01:00
Ted John
e4a10b8eb4 Fix and improve plugin startup / shutdown 2022-03-21 21:43:02 +00:00
Ted John
84fdd44e6a Add map changed hook 2022-03-21 21:42:30 +00:00
Gymnasiast
ffe8b4b45d Undo fspath() workaround for Android 2022-03-18 23:21:23 +01:00
Silent
3773fa4cb0 Refactor uses of path_append_extension 2022-03-10 20:18:17 +01:00
Hielke Morsink
6ba0a3bd49 Use u8 strings when dealing with file paths 2022-03-01 22:12:39 +01:00
Ted John
d93f4bdc1d Fix #12774: Plugin: Scripts are not reloaded after new scenario (#16686) 2022-02-20 23:14:51 -03:00
Michael Steenbeek
5edc561715 Close #11437: Migrate old platform methods 2022-02-18 21:57:00 +01:00
Ted John
3d2420c86c More code review changes 2022-02-14 23:15:59 +00:00
Ted John
454bfb0a8f Refactor map size to allow for rectangle maps 2022-02-14 23:15:59 +00:00
Silent
09897ede9e Refactor last_*_directory and last_run_version to use u8string
Fixes a regression from #16631 causing a crash when
constructing u8string from a nullptr
2022-02-13 21:34:26 +01:00
ζeh Matt
aed98b5d82 Initialize track data table at compile time 2022-02-02 21:10:32 +02:00
Michael Steenbeek
657f13fec0 Merge pull request #16531 from Gymnasiast/refactor/file_dialog_desc
Merge old and new FileDialogDesc
2022-01-29 14:32:19 +01:00
ζeh Matt
269673e3aa Profiler update (#16463)
* Add more functions to be profiled

* Add isEnabled method to Profiler scripting interface

* Bump up scripting version

* Apply review suggestions
2022-01-29 15:29:08 +02:00
Gymnasiast
55591b1b2f Merge old and new FileDialogDesc 2022-01-29 13:55:10 +01:00
Michael Steenbeek
f43a4344ce Remove platform_get_user_directory() (#16530) 2022-01-29 09:01:05 -03:00
Gymnasiast
f8c74fe2f8 Use u8string in Path/File; replace Path::Append with Path::Combine 2022-01-28 21:52:44 +01:00
Michael Steenbeek
149b164ee8 Use u8string for custom paths 2022-01-27 14:21:46 +01:00
Michael Steenbeek
c903d95512 Replace platform_open_directory_browser() with ShowDirectoryDialog() 2022-01-25 10:54:12 +01:00
ζeh Matt
993b168bfd Implement profiler (#16194)
* Implement profiling API

* Add console commands for the profiler

* Remove accidental line

* Correct csv output

* Add copyright notice

* Add missing override

* Add default virtual destructor

* Explicitly pass template argument

* Use static

* Add plugin API for profiler

* Add more profile calls

* Workaround for GCC hopefully

* Add missing static keyword

* Use uint64 for call count

* Reduce name length see if CI passes

* Improve handling of function names

* Work around (broken) static inline variables

* Fix missing include

* Disable profiler for clang 5 and older

* Update copyright date

* Profile UpdateAllMiscEntities

* Apply review suggestions

Co-authored-by: Ted John <ted@brambles.org>
2022-01-18 20:21:20 +02:00
Gymnasiast
feeadb3c98 Upgrade platform_process_is_elevated() 2022-01-16 13:17:54 +01:00
Gymnasiast
6bcf848b2f Use C++ filesystem for more file/path functions 2022-01-08 19:07:48 +01:00
Gymnasiast
10301507a9 Fix Android 2022-01-08 16:58:57 +01:00
Gymnasiast
2e7e90a018 Remove platform_get_openrct2_data_path() 2022-01-05 15:26:51 +01:00
Gymnasiast
77e5defeca Upgrade platform_original_game_data_exists() 2022-01-05 15:26:51 +01:00
Michael Steenbeek
ff909cc286 Change rct2_path into a C++ string
Co-authored-by: Ted John <ted@brambles.org>
2022-01-05 15:18:25 +01:00
ζeh Matt
e9f79f1c9d Merge pull request #16335 from ZehMatt/fix-16324
Fix #16324: Real time ticks advancing every millisecond
2021-12-30 16:39:03 -08:00
frutiemax
adb692b74e Forward declare Formatter 2021-12-30 12:17:51 -05:00
ζeh Matt
578a7865c9 Fix #16324: Real time ticks advancing every millisecond 2021-12-30 18:16:40 +02:00
ζeh Matt
fc2862323a Add utility function and some minor cleanup/documentation 2021-12-13 19:10:47 +02:00
ζeh Matt
c464e38515 Use chrono::duration for Timer 2021-12-13 19:04:49 +02:00
ζeh Matt
531aace060 Move real time calculation into Context 2021-12-13 19:04:48 +02:00
ζeh Matt
94e20ba7fe Rename some Update functions to Tick 2021-12-13 19:04:48 +02:00
ζeh Matt
20ef683744 Use Timer and cleanup some code in Context 2021-12-13 19:04:48 +02:00