Commit Graph

44 Commits

Author SHA1 Message Date
Jonathan G Rennison
1234bdb07c Fix compilation issue with MSVC due to ordering of noreturn and cdecl. 2015-10-31 10:51:58 +00:00
Jonathan G Rennison
86dea90c4f save_ext: Initial support for save/load of RIFF chunk sizes > 28 bits.
Add a chunk extension header with a flag for increased RIFF size.
2015-09-11 22:37:36 +01:00
Jonathan G Rennison
a8cc81d054 Initialiser list fixes for legacy compilers. 2015-08-16 14:36:07 +01:00
Jonathan G Rennison
bde094fe01 Initial implementation of SLXI chunk save/load 2015-08-01 12:58:53 +01:00
Jonathan G Rennison
a3980dc6ba Move SlRead/SlWrite functions to saveload.h
Add SlGetBytesRead and SlGetBytesWritten functions.
2015-08-01 12:26:22 +01:00
Jonathan G Rennison
4508cfbf93 Add format-style versions of SlError and SlErrorCorrupt. 2015-08-01 12:26:22 +01:00
Jonathan G Rennison
17e8693e62 Initial stubs for extending the save/load version checking/upgrade code,
with support for tests on individually versioned features as well as
savegame versions.
This is mainly for improved handling of features added to patchpacks.
The current status-quo of picking a random number for the savegame
version when releasing a patch breaks loading of savegames from newer
trunk savegame versions, with or without the same patch applied, as
savegame upgrade code is not run, which can also lead to crashes on load.
Instead don't change the savegame version (but set the high bit to
keep trunk versions away), but instead include the versions of individual
features using a separate mechanism.
2015-08-01 12:26:22 +01:00
rubidium
4c6c4677fa (svn r26591) -Add: some instrumentation to catch most cases where the wrong number of bytes would be written into variables during loading (or read during saving) 2014-05-16 17:41:55 +00:00
frosch
c1283e7dfd (svn r25702) -Add: about 3000 years of savegame compatibility. 2013-08-08 19:01:02 +00:00
rubidium
6515371cf5 (svn r25258) -Codechange: save linkgraph (fonsinchen) 2013-05-19 14:17:02 +00:00
truebrain
2b381d0765 (svn r23603) -Add: support for control commands in strings, in both network and safe/load (Rubidium) 2011-12-19 20:50:44 +00:00
rubidium
3d605f6488 (svn r23595) -Codechange: add comma after last enum to get a more uniform coding style 2011-12-19 17:48:04 +00:00
rubidium
215452b911 (svn r23195) -Codechange: if we really need to cast away constness, use const_cast 2011-11-12 08:37:12 +00:00
frosch
7337332026 (svn r22880) -Cleanup: SIZE_MAX is now defined in stdafx.h 2011-09-03 12:17:36 +00:00
terkhen
7e0daae1ec (svn r22567) -Codechange: Store persistent storages inside a pool. 2011-06-12 20:47:45 +00:00
rubidium
2a7912d415 (svn r22198) -Codechange: make some constants name more explicit 2011-03-05 11:16:44 +00:00
rubidium
1516299bca (svn r22070) -Fix [FS#4503] (r21399): crashes when disconnecting after requesting the map 2011-02-12 21:30:57 +00:00
smatz
8608a7c29b (svn r22025) -Fix: verify there is enough space in the pool when creating new pool items while loading old savegames 2011-02-08 18:34:13 +00:00
rubidium
2a577707e7 (svn r21395) -Codechange: move the save and load filter's interface to a header 2010-12-05 14:41:34 +00:00
alberth
16f678a990 (svn r21284) -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore(). 2010-11-21 12:47:04 +00:00
alberth
8b104cbdfd (svn r21283) -Codechange: Allow minor argument IsSavegameVersionBefore() to be optional. 2010-11-21 12:38:16 +00:00
alberth
160b6834e9 (svn r21282) -Codechange: Rename CheckSavegameVersionOldStyle() to IsSavegameVersionBefore(). 2010-11-21 12:31:16 +00:00
alberth
41041dda9a (svn r21281) -Doc: Add doxygen comments to saveload code. 2010-11-21 12:12:23 +00:00
rubidium
f3cf16f529 (svn r20819) -Fix [FS#3714]: be a bit more "lenient" w.r.t. invalid savegames; don't crash on saveload related NOT_REACHEDs, just show the user an error that the savegame is corrupted 2010-09-16 22:06:36 +00:00
frosch
c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch
5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
rubidium
8894ae2ccb (svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location 2010-07-19 15:44:49 +00:00
alberth
0dd71a0d7e (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 2010-06-27 09:05:10 +00:00
frosch
ec903570f1 (svn r19975) -Add: SL_LOAD_CHECK mode for partial reading of savegames. 2010-06-13 14:13:23 +00:00
frosch
fe063af382 (svn r19973) -Codechange: Add another procedure to chunk handlers for checking savegames (empty for now). 2010-06-13 14:11:59 +00:00
rubidium
f09a74a996 (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int 2010-05-13 09:44:44 +00:00
smatz
93d93b3121 (svn r18954) -Fix (r18952): missing 'inline' 2010-01-29 23:54:00 +00:00
yexo
d9bd9bb945 (svn r18952) -Fix (r18950): loading recent (=newer then title game) savegames failed 2010-01-29 21:06:35 +00:00
rubidium
fd060c7276 (svn r18831) -Change [FS#3537]: do not go into the crashlog handler in case loading a savegame misses with missing NewGRFs. This way the load game crash handler gets better visibility and the user is instructed to find the missing NewGRFs before filing a bug report 2010-01-16 19:08:33 +00:00
rubidium
53916ac770 (svn r18688) -Cleanup: remove some unused code/constants 2010-01-02 15:52:41 +00:00
rubidium
989f53b9dd (svn r17535) -Fix: compiling without networking failed; also unhackify the crash logger a bit. 2009-09-14 15:53:19 +00:00
rubidium
99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium
c02c85d645 (svn r16944) -Codechange: remove needlessly complex way of getting the offset of items within a struct that are within a struct 2009-07-24 19:09:48 +00:00
rubidium
100cb17fa8 (svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
2009-07-22 08:59:57 +00:00
smatz
769de62daf (svn r16338) -Codechange: split loading of references to two phases
In the first phase, indexes are stored. In the second phase, indexes are checked for validity and converted to pointers
2009-05-17 16:28:29 +00:00
rubidium
c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
yexo
b8601d903d (svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers. 2009-02-25 21:45:14 +00:00
smatz
f0ff90d71c (svn r15216) -Feature: native support for Transport Tycoon (Original) savegames. Based on SVXConverter's source code and documentation by Roman Vetter 2009-01-23 02:35:17 +00:00
smatz
91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 2009-01-04 15:32:25 +00:00