ζ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
Michael Steenbeek
9134bd4788
Update RCT1 path names + British spelling for ‘grey’
2021-11-13 23:38:04 +01:00
Hielke Morsink
76b5479bbb
Fix undefined use of cctype functions
2021-11-06 16:27:54 +01:00
Duncan
3f19d6f7d7
Split Peep header Guest into separate header ( #15810 )
...
* Move guest functions and classes to guest header
* Reduce includes of Peep.h
2021-10-28 21:38:23 +01:00
ζeh Matt
6f8e017a32
Backport track design changes
...
Co-authored-by: Ted John <ted@brambles.org >
2021-10-11 20:28:13 +03:00
Michał Janiszewski
b8c751e300
Drop some unnecessary includes
2021-10-09 21:30:24 +02:00
Soham Roy
4d27417fd2
Fix #11354 : Coding style causes undefined behaviour
...
An underscore followed by a capital letter used as a prefix might cause
undefined behaviour
2021-10-05 13:58:50 +02:00
Michael Steenbeek
233b1e99b4
Fix Windows compilation of OrcaStream
2021-10-03 22:41:55 +02:00
Duncan
e01c9a3afa
Stream changes from NSF ( #15446 )
...
* Bring over NSF changes to stream classes
* Add orca stream to project files
* Bring over util changes as well.
* Add const to util and fix util ungzip
* Add const and apply review comments
* Apply review comments
2021-09-30 13:02:54 +01:00
Michał Janiszewski
ce1d3e9c83
Minor fixes ( #15491 )
2021-09-29 21:06:46 +00:00
Duncan
81051f2d21
Add crypt files from NSF
2021-09-18 20:31:23 +00:00
Hielke Morsink
77141f57b0
Merge pull request #15416 from Broxzier/refactor/unnecessary-else
...
Remove unnecessary else blocks
2021-09-17 14:56:30 +02:00
Hielke Morsink
fc8e0cf9d7
A couple more nullopt returns ( #15422 )
2021-09-16 23:05:50 +02:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
ζeh Matt
59a6c34db4
Make use of std::optional strict
2021-09-13 20:02:32 +03:00
ζeh Matt
f999b0acb2
Remove Nullable and use std::optional instead
2021-09-12 16:55:56 +03:00
ζeh Matt
65a484105e
Merge pull request #15395 from ZehMatt/refactor/common-numerics
...
Remove numerics from common.h and use it as needed
2021-09-11 14:27:07 -07:00
ζeh Matt
b733e97bfa
Remove numerics from common.h and use it as needed
2021-09-11 20:21:08 +03:00
ζeh Matt
2daa356fbf
Move ZipStream into new header
2021-09-11 19:06:17 +03:00
ζeh Matt
50467d4fd8
Remove unused serialiser traits
2021-09-10 19:10:14 +03:00
ζeh Matt
120bb10fd5
Fix serialiser traits
2021-09-10 19:10:14 +03:00
ZehMatt
e65a1f6fc5
Forward NetworkRideId_t to ride_id_t and adjust serialiser
2021-09-10 19:10:12 +03:00
Duncan
454eabe3a7
Merge pull request #15351 from ZehMatt/fix/dataserializer-enum
...
Fix enum serialization not using byte swap
2021-09-06 08:41:33 +01:00
ζeh Matt
23f4f72047
Fix enum serialization not using byte swap
2021-09-05 18:16:37 +03:00
Hielke Morsink
b2dfeaf1b9
Introduce String::URLEncode
2021-09-05 15:25:44 +02:00
Hielke Morsink
f1fbe07ded
Avoid redefining WIN32_LEAN_AND_MEAN ( #15342 )
2021-09-04 21:17:08 +02:00
ζeh Matt
b97ebc745f
Rename rct_peep_thought to PeepThought
2021-08-30 21:13:33 +03:00
Duncan
c209021229
Remove unused serialiser trait ( #15279 )
2021-08-25 14:03:48 +01:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Hielke Morsink
cef26400cf
Use std::make_unique instead of new for arrays
2021-08-21 00:28:21 +02:00
Duncan
223b926f8c
Use std::vector for ride use memory ( #14884 )
...
* Use std::vector for ride use memory
* Use new system for import/export
* Remove legacy field
* Add replay entity size protection to prevent crash
* Increment network version
* Update replays
* Move function to header
* Move constant to RCT12 header as used for both 1 and 2
* Align naming with nsf
2021-08-17 21:29:35 +01:00
ZehMatt
aeb68008fa
Fix uninitialized variable in Http.h
2021-07-30 21:31:10 +03:00
ZehMatt
a36e0a32f7
Add EnumMap container for bidirectional key, enum mapping
2021-07-29 17:07:48 +03:00
ZehMatt
0e7d05a5ad
Add TileCoordsXYZD serialiser traits
2021-07-27 20:15:10 +03:00
Silent
e280eb2083
FileStream::Read: Throw the exception basing on fread return value
...
This change removes ftell/GetPosition() from hot spots during the startup,
"optimizing" the function for success cases - reading past EOF should
never/rarely happen so it seems fine to let it try to read before checking
2021-05-21 19:55:43 +02:00
Silent
724a3c0579
Obtain file sizes without seeking where possible
2021-05-21 19:55:43 +02:00
Silent
95388cfbb1
Add File::GetSize to get object size in a simpler way
...
Drastically reduces startup speed because of the
optimization applied to ObjectAsset::GetSize - now the file
size is obtained without reading the entire file into memory.
2021-05-21 19:55:42 +02:00
Silent
94da3cf422
Fix #13445 : Make FileScanner::ScanDirectory return a unique_ptr
...
Also fixes a resource leak in TitleSequence::GetSaves.
2021-05-20 19:22:36 +02:00
Duncan
d46e4a9bb1
Network serialiser for entities ( #14541 )
...
* Start a network serialiser for entities
will be used only for checksums and replay diffs
* Continue work
* Use the new serailser for checksums
* Use new serialiser for replays
* keep compilers happy
* Try create checksum stream
* Fix compiling
* Split off class into seperate file
* Update Xcode project
* Increment network version
* Fix pragma mistake
* Fix none network builds
* Update replays
* Improve ChecksumStream and use FNV internally
* Small cleanups
* satisfy compilers
* Revert change of checksum size to simplfy rerecording
* Zero initialise data
* Fix serialiser
* Update replays again
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com >
Co-authored-by: Matt <m.moninger.h@gmail.com >
2021-05-09 19:12:44 +01:00
Tulio Leao
2d1557e48e
Merge pull request #13444 from tupaschoal/extract-ifdefed-functions
...
Extract ifdefed functions
2021-03-27 10:00:01 -03:00
Tulio Leao
62fc4c8034
Extract ResolveCasing to Platform
2021-03-26 23:17:01 -03:00
Tulio Leao
c7ae064a4c
Extract ShouldIgnoreCase to Platform
2021-03-26 23:17:01 -03:00