Jonathan G Rennison
dd0666c5f4
Add support for save/loading std::strings.
8 years ago
Jonathan G Rennison
fae4ac1a5d
Merge branch 'master' into save_ext
...
# Conflicts:
# src/saveload/company_sl.cpp
# src/saveload/saveload.cpp
8 years ago
frosch
0c1fcc02ec
(svn r27757) -Change: Make StringID 32bit.
8 years ago
Jonathan G Rennison
94d3700f79
SaveLoad: Add support for saving/loading from a std::vector<T *>
8 years ago
Jonathan G Rennison
c752da3a9e
SaveLoad: Add support for saving/loading from a std::deque<T *>
8 years ago
Jonathan G Rennison
a6e0b1ac7d
Merge branch 'cpp-11' into save_ext
8 years ago
alberth
f286ba8db2
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
8 years ago
alberth
e735bbebce
(svn r27651) -Codechange: Introduce methods for setting the name and title of _file_to_saveload.
8 years ago
alberth
a959c0c965
(svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and DetailedFileType.
8 years ago
alberth
e78627f2f1
(svn r27638) -Codechange: Move FiosType enum, move and rename SetFiosType function.
8 years ago
alberth
757bc0a97b
(svn r27636) -Codechange: Rename FileType to AbstractFileType.
8 years ago
alberth
a35e970ab0
(svn r27635) -Codechange: Move FileType and FileToSaveLoad structure definitions.
8 years ago
Jonathan G Rennison
1234bdb07c
Fix compilation issue with MSVC due to ordering of noreturn and cdecl.
9 years ago
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.
9 years ago
Jonathan G Rennison
a8cc81d054
Initialiser list fixes for legacy compilers.
9 years ago
Jonathan G Rennison
bde094fe01
Initial implementation of SLXI chunk save/load
9 years ago
Jonathan G Rennison
a3980dc6ba
Move SlRead/SlWrite functions to saveload.h
...
Add SlGetBytesRead and SlGetBytesWritten functions.
9 years ago
Jonathan G Rennison
4508cfbf93
Add format-style versions of SlError and SlErrorCorrupt.
9 years ago
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.
9 years ago
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)
11 years ago
frosch
c1283e7dfd
(svn r25702) -Add: about 3000 years of savegame compatibility.
11 years ago
rubidium
6515371cf5
(svn r25258) -Codechange: save linkgraph (fonsinchen)
12 years ago
truebrain
2b381d0765
(svn r23603) -Add: support for control commands in strings, in both network and safe/load (Rubidium)
13 years ago
rubidium
3d605f6488
(svn r23595) -Codechange: add comma after last enum to get a more uniform coding style
13 years ago
rubidium
215452b911
(svn r23195) -Codechange: if we really need to cast away constness, use const_cast
13 years ago
frosch
7337332026
(svn r22880) -Cleanup: SIZE_MAX is now defined in stdafx.h
13 years ago
terkhen
7e0daae1ec
(svn r22567) -Codechange: Store persistent storages inside a pool.
13 years ago
rubidium
2a7912d415
(svn r22198) -Codechange: make some constants name more explicit
14 years ago
rubidium
1516299bca
(svn r22070) -Fix [FS#4503] (r21399): crashes when disconnecting after requesting the map
14 years ago
smatz
8608a7c29b
(svn r22025) -Fix: verify there is enough space in the pool when creating new pool items while loading old savegames
14 years ago
rubidium
2a577707e7
(svn r21395) -Codechange: move the save and load filter's interface to a header
14 years ago
alberth
16f678a990
(svn r21284) -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore().
14 years ago
alberth
8b104cbdfd
(svn r21283) -Codechange: Allow minor argument IsSavegameVersionBefore() to be optional.
14 years ago
alberth
160b6834e9
(svn r21282) -Codechange: Rename CheckSavegameVersionOldStyle() to IsSavegameVersionBefore().
14 years ago
alberth
41041dda9a
(svn r21281) -Doc: Add doxygen comments to saveload code.
14 years ago
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
14 years ago
frosch
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
8894ae2ccb
(svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location
14 years ago
alberth
0dd71a0d7e
(svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation.
14 years ago
frosch
ec903570f1
(svn r19975) -Add: SL_LOAD_CHECK mode for partial reading of savegames.
15 years ago
frosch
fe063af382
(svn r19973) -Codechange: Add another procedure to chunk handlers for checking savegames (empty for now).
15 years ago
rubidium
f09a74a996
(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int
15 years ago
smatz
93d93b3121
(svn r18954) -Fix (r18952): missing 'inline'
15 years ago
yexo
d9bd9bb945
(svn r18952) -Fix (r18950): loading recent (=newer then title game) savegames failed
15 years ago
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
15 years ago
rubidium
53916ac770
(svn r18688) -Cleanup: remove some unused code/constants
15 years ago
rubidium
989f53b9dd
(svn r17535) -Fix: compiling without networking failed; also unhackify the crash logger a bit.
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
c02c85d645
(svn r16944) -Codechange: remove needlessly complex way of getting the offset of items within a struct that are within a struct
15 years ago