1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00
Commit Graph

36 Commits

Author SHA1 Message Date
Michał Janiszewski
7f9fa28995 Fix uninitialised variables 2016-10-09 22:43:07 +02:00
Michał Janiszewski
3c4a683701 Fix #4558: Crash on loading invalid scenario 2016-10-08 21:23:03 +01:00
Michał Janiszewski
f8145b6edc Refactor inclusion of addresses.h
addresses.h is now only included when necessary, limiting scope as much
as possible.
2016-09-03 21:25:19 +01:00
Michał Janiszewski
f3fe28e722 Verify sv4/sc4 sizes when loading them 2016-09-01 22:56:30 +02:00
Ted John
8cf7e87b5c Fix many warnings for x64 2016-08-27 23:32:15 +01:00
Michał Janiszewski
b66853383e Add more checks to object loading 2016-07-15 18:50:15 +01:00
Michał Janiszewski
ef09dcd64a Add another assert to decode_chunk_rle_with_size 2016-07-11 22:52:43 +01:00
Ted John
09782e980c implement saving of objects and fix other bugs 2016-07-08 22:58:38 +01:00
Michał Janiszewski
da08b963c9 Check RLE chunk size 2016-06-23 21:50:23 +01:00
Michał Janiszewski
bee6bcd1c7 Verify size in sawyercoding_read_chunk 2016-06-23 19:00:54 +01:00
Ted John
8d4e4ed0e9 remove unread RCT2_GLOBALs 2016-05-17 23:39:37 +01:00
Hielke Morsink
d7aacfcde6 Fixed warning in sawyerencoding.c 2016-05-15 01:10:37 +02:00
Michał Janiszewski
90bcca11d2 More sawyercoding optimisations 2016-05-14 11:54:19 +02:00
Michał Janiszewski
9cd762b1a6 Use memset/memcpy functions for RLE chunk decoding
Reduces time spent in `decode_chunk_rle` by 4-5x.
2016-05-14 11:12:14 +02:00
Ted John
4298f416d2 fix #3558: safely read chunks from S6 files
It appears many saved games have been saved with excess uncompressed data that overflows the S6 structure. This may have been caused by a save bug in an earlier version of OpenRCT2. This will now cap the uncompressed data to the amount expected.
2016-05-10 21:39:12 +01:00
janisozaur
68bad6505c Add and correct licence headers to all sources (#3108) 2016-05-04 18:24:41 +01:00
Gymnasiast
2d3dfd8834 Move RCT1 file version detection to its own function 2016-04-22 18:23:46 +01:00
Michał Janiszewski
08fc5f817a Disable using RLE when saving for network 2016-01-20 15:30:59 +01:00
IntelOrca
24a796c3bc fix #2778: encode_chunk_repeat reads out of range memory 2016-01-19 17:54:51 +00:00
Michał Janiszewski
f35fac6030 Update assert condition 2016-01-16 18:10:44 +01:00
Michał Janiszewski
2b29f252e5 Assert for evergreen gardens 2016-01-16 00:19:08 +01:00
IntelOrca
31ab7c8b98 fix several warnings 2015-11-06 18:50:37 +00:00
Michał Janiszewski
9572f1b532 type and const fixes for sawyercoding 2015-10-12 23:09:49 +02:00
zsilencer
b876591543 use SDL_RWops for save games 2015-07-11 12:27:46 +01:00
IntelOrca
beb2b23afb use log functions instead of printf and RCT2_ERROR (now removed) 2015-06-14 12:03:32 +01:00
Duncan Frost
66de066901 Added save_track_file. Fixed bugs.
Encountered bug where incorrect tracks would be displayed if the loading process failed.
Added checksum validation to loading code.
Increased the max rle length to match rct2.
2015-05-13 19:19:36 +01:00
Duncan Frost
f8a334c90f Fix memory corruption when saving. 2015-02-27 23:42:51 +00:00
IntelOrca
fddeda3021 fix loading of RCT1 (no expansion packs) SC4 files in editor, fixes #687 2015-01-20 01:05:06 +00:00
IntelOrca
d00001fed2 remove unnecessary header includes 2014-11-30 20:27:14 +00:00
IntelOrca
cc36cafcaa remove redundant variable from encode_chunk_repeat 2014-11-26 16:30:41 +00:00
IntelOrca
85c41488ce implement RLECOMPRESSED chunk encoding, closes #598 2014-11-26 16:27:21 +00:00
IntelOrca
4b897ae1a3 implement saving of games and scenarios 2014-11-26 00:51:26 +00:00
IntelOrca
c628f6fea0 change track loading to use stdio (FILE) 2014-10-11 01:18:08 +01:00
IntelOrca
1714f94263 implement some of editor_load_landscape for sv4 and sc4 files 2014-10-10 22:50:22 +01:00
IntelOrca
c8df6174b8 organisation: fix includes 2014-10-06 17:36:58 +01:00
IntelOrca
554e1fe70e organisation: move files and update project 2014-10-06 10:21:07 +01:00