ζ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
ζeh Matt
63702fcc6f
Implement identifier comparison overloads
2021-12-01 14:41:59 +02:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
Duncan
275d565e52
Start splitting up ride.h ( #16011 )
...
* Start splitting up ride.h
* Use cstdint instead of common.h
2021-11-26 15:03:14 +00:00
Peter Schussheim
0495b265c0
Refactor unchecked std::array subscript operator
2021-11-25 10:13:20 +01:00
ζeh Matt
f9c673679e
Add missing default constructor and mark constructors constexpr
2021-11-22 18:17:18 +02:00
ζeh Matt
4147a57c5b
Remove Null constant and use strictly GetNull/IsNull
2021-11-22 18:17:17 +02:00
ζeh Matt
15396fee5d
Add static GetNull member
2021-11-22 18:17:17 +02:00
ζeh Matt
f703c3e805
Introduce TIdentifier
2021-11-22 18:17:12 +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