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
Ted John
a324bfab63
Add image manager plugin API ( #16144 )
2021-12-07 20:55:27 +00:00
ζeh Matt
0024252328
Fix includes
2021-11-24 17:19:52 +02:00
IntelOrca
34128dc262
Add new .park save format
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com >
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com >
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com >
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com >
2021-11-21 22:43:22 +01:00
ζeh Matt
74e8988dd8
Remove scenario ticks and adjust export/import
...
Co-authored-by: Ted John <ted@brambles.org >
2021-09-23 21:49:09 +03:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
Gymnasiast
bdab3219cb
Modify object loading for JSON-only objects
2021-09-15 11:28:39 +02:00
ζeh Matt
0be585024f
Merge pull request #15232 from ZehMatt/refactor/gNetwork
...
Move network instance to Context
2021-08-30 14:17:15 -07:00
Michael Steenbeek
4bbee1c6ae
Merge pull request #15261 from frutiemax/13874_refactor
...
Track Element Descriptor refactor (issue #13874 )
2021-08-29 22:38:46 +02:00
frutiemax
5c261b6d2e
Part of #13874 : TrackElementDescriptor loader
2021-08-22 17:47:10 -04:00