1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00
Commit Graph

506 Commits

Author SHA1 Message Date
Gymnasiast
ffe8b4b45d Undo fspath() workaround for Android 2022-03-18 23:21:23 +01:00
Gymnasiast
1a5bb7483d Enable std::filesystem for Android
NDK r22 introduced support for std::filesystem, so re-enable it: https://android.googlesource.com/platform/ndk/+/master/docs/Roadmap.md#ndk-r22
2022-03-18 23:14:51 +01:00
Ted John
97dfe3cb73 Refactor std::lower_bound to binary_find 2022-03-11 18:39:05 +00:00
Silent
5e725913f8 Close #16566: Favour WinNT preprocessor version checks over MinGW (#16677) 2022-03-11 07:59:09 -03:00
Gymnasiast
376c79408a Replace path_set_extension with Path::WithExtension() 2022-02-26 18:26:24 +01:00
Charles Machalow
6406b18c98 Fix #16715. The first time we save a park, default to the park's name… (#16719)
* Fix #16715. Default to the park's name as the file name

* Mark Combine as nodiscard

The return value must be used for the function to do something
2022-02-26 06:23:30 +00:00
Michael Steenbeek
5edc561715 Close #11437: Migrate old platform methods 2022-02-18 21:57:00 +01:00
ζeh Matt
aa3ad0424d Add <=, >= operators for TIdentifier 2022-02-16 18:56:43 +02:00
ζeh Matt
52047805db Use correct type for EntityId and fix issues 2022-02-16 18:56:43 +02:00
ζeh Matt
c1bd0ff047 Fix serializer traits 2022-02-16 18:56:43 +02:00
ζeh Matt
d7f5003943 Introduce EntityId and refactor everything 2022-02-16 18:56:39 +02:00
Ted John
454bfb0a8f Refactor map size to allow for rectangle maps 2022-02-14 23:15:59 +00:00
Silent
4621cc4264 Json: Fix wrong implicit path typecasts in ReadFromFile and WriteToFile
These functions accepted fs::path which meant passing a u8string to them
wrongly assumed an ANSI encoding and not UTF-8. This would be
a non-issue in C++20 where char8_t is separate, but until then it was an issue
causing incorrect character conversions, and thus an exception.
2022-02-12 14:36:37 +01:00
Gymnasiast
3ea0e2fea2 Remove no-longer-needed ifdef 2022-01-28 22:14:53 +01:00
Gymnasiast
f8c74fe2f8 Use u8string in Path/File; replace Path::Append with Path::Combine 2022-01-28 21:52:44 +01:00
Michael Steenbeek
3359dc4509 Merge pull request #16518 from Gymnasiast/refactor/absolute-path
Clean up Path::GetAbsolute and platform_get_absolute_path()
2022-01-27 11:38:55 +01:00
Michael Steenbeek
46abcda068 Make File/Path calls more robust 2022-01-27 00:33:17 +01:00
Gymnasiast
f7adac3de2 Replace Platform::GetAbsolutePath() with fs:: equivalent 2022-01-26 15:19:15 +01:00
Gymnasiast
d7dcffbee8 Remove C string overload for Path::GetAbsolute() 2022-01-26 14:54:49 +01:00
Hielke Morsink
5dd01f5511 Remove unused includes 2022-01-26 00:09:57 +01:00
Michael Steenbeek
9f74c7081b Create definitions for u8string and u8string_view 2022-01-25 16:41:45 +01:00
Michał Janiszewski
98114c91c6 Report CNG error codes in hex (#16465) 2022-01-19 14:11:07 +01:00
Gymnasiast
0aa256a26a Move remaining stuff in Android.cpp 2022-01-16 13:17:54 +01:00
Gymnasiast
8d6cb974bf Move platform_directory_delete() to Path 2022-01-16 13:17:54 +01:00
Duncan
7fff8fae7a Convert back to utf8 strings in Path functions (#16425) 2022-01-11 19:34:33 +00:00
Michał Janiszewski
9b6040c590 Extend reporting of curl failures (#16410) 2022-01-09 19:53:40 -03:00
Gymnasiast
7bab05c66a Remove unused writeentirefile() 2022-01-08 19:07:48 +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
919c73d030 C++-ify most path handling 2022-01-08 16:58:57 +01:00
frutiemax
adb692b74e Forward declare Formatter 2021-12-30 12:17:51 -05:00
ζeh Matt
186d3efb59 Merge pull request #16092 from ZehMatt/refactor/timing
Refactor update/time related things
2021-12-17 10:08:42 -08: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
1261ccc7b9 Add missing pragma once 2021-12-13 19:04:48 +02:00
ζeh Matt
30cc3dff3f Implement Timer class 2021-12-13 19:04:44 +02:00
ζeh Matt
fb93b9d81f Use fold expressions to enable potential simd optimizations 2021-12-13 17:05:01 +02:00
ζeh Matt
e405658f6a Code style and cleanup 2021-12-13 16:00:51 +02:00
ζeh Matt
9ec4e9c326 Fix trim condition 2021-12-13 15:35:42 +02:00
ζeh Matt
a742b49f2c Pass const data by template parameters 2021-12-13 05:05:12 +02:00
ζeh Matt
ecfbaec47e Cleanup and fix block size calculation 2021-12-13 03:25:28 +02:00
ζeh Matt
59682291f0 Fix warnings and supply template argument 2021-12-13 02:31:33 +02:00
ζeh Matt
4f0b0e8aa4 Fix template parameter to be size_t 2021-12-12 23:47:20 +02:00
ζeh Matt
16635b9192 Implement custom BitSet and replace std::bitset 2021-12-12 23:47:17 +02:00
Michał Janiszewski
7b0e6ad0b6 Reformat with clang-format-12 from updated CI image 2021-12-12 17:48:52 +01:00
ζeh Matt
cec30e093d Merge pull request #15991 from ZehMatt/refactor/bannerid
Use TIdentifier for BannerIndex
2021-12-11 08:08:27 -08:00
Duncan
fdfd9b4760 Make track designs NSF map size safe (#16116)
* Make track designs NSF map size safe

* Increment network version
2021-12-06 16:58:50 +00:00
ζeh Matt
e201c3b7fd Expose UnderlyingType for TIdentifier 2021-12-01 14:41:59 +02:00
ζeh Matt
63a2e9d716 Refactor uses of old BannerIndex 2021-12-01 14:41:59 +02:00
ζeh Matt
f704358cb3 Add TIdentifier specialization for OrcaStream 2021-12-01 14:41:59 +02:00