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
Tulio Leao
9a071aef76
Extract GetAbsolutePath to Platform
2021-03-26 23:17:01 -03:00
Tulio Leao
f15bbd220a
Extract IsPathSeparator to Platform
2021-03-25 23:45:01 -03:00
Duncanspumpkin
0957542503
Implement C++ solution to truncate UTF8 strings
2021-03-18 22:14:12 +01:00
Tulio Leao
f372117939
Extract GetLastModified to Platform
2021-03-14 09:36:44 -03:00
Ted John
2b3e7b98b8
Roll our own implementation of parse
2021-02-21 03:14:19 +00:00
Ted John
2b197d0fb2
Fix parsing of shortcuts
2021-02-21 03:14:18 +00:00
Ted John
46c3fd4e5f
Use FileStream instead of fstream
2021-02-21 03:14:18 +00:00
Ted John
af0ed416f5
Implement loading / saving of new shortcuts
2021-02-21 03:14:18 +00:00
Ted John
e7ae9f9f15
Read legacy shortcuts and move to constants
2021-02-21 03:14:17 +00:00
Ted John
e5f263a0fc
Get new manager showing in window
2021-02-21 03:13:27 +00:00
Ted John
1523597b50
Fix test failures
2021-02-16 20:25:11 +00:00
Ted John
3f5698b1e0
Fix REPL write line on Linux
2021-02-16 20:24:51 +00:00
Matt
c30bd1266f
Refactor IStream::ReadArray to return unique_ptr
2021-02-12 19:30:53 +02:00
ζeh Matt
15ef22c2f6
Merge pull request #13970 from ZehMatt/refactor/fixed-vector
...
Use FixedVector for paint_structs
2021-01-30 12:57:12 +02:00
Matt
3fecb36a19
Use fixed vector for paint_entry
2021-01-30 09:16:42 +02:00
Michael Steenbeek
d3a4c16270
Reserve room for tile owner
2021-01-29 16:56:33 +01:00