diff options
author | frosch <frosch@openttd.org> | 2010-06-13 14:13:23 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-13 14:13:23 +0000 |
commit | 8d9b573f8f7b6bd9e9f7df2a946d17a6f66082d9 (patch) | |
tree | 27c4c007629dcc0a6abaa3d8a33ffcdfa5d03132 /src/saveload/saveload.h | |
parent | e8248cf1136cbb82f88807f68b53473aa8eb1682 (diff) | |
download | openttd-8d9b573f8f7b6bd9e9f7df2a946d17a6f66082d9.tar.xz |
(svn r19975) -Add: SL_LOAD_CHECK mode for partial reading of savegames.
Diffstat (limited to 'src/saveload/saveload.h')
-rw-r--r-- | src/saveload/saveload.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h index c06b7b251..b2a904106 100644 --- a/src/saveload/saveload.h +++ b/src/saveload/saveload.h @@ -27,12 +27,13 @@ enum SaveOrLoadResult { }; enum SaveOrLoadMode { - SL_INVALID = -1, - SL_LOAD = 0, - SL_SAVE = 1, - SL_OLD_LOAD = 2, - SL_PNG = 3, - SL_BMP = 4, + SL_INVALID = -1, + SL_LOAD = 0, + SL_SAVE = 1, + SL_OLD_LOAD = 2, + SL_PNG = 3, + SL_BMP = 4, + SL_LOAD_CHECK = 5, }; enum SavegameType { @@ -216,6 +217,7 @@ typedef SaveLoad SaveLoadGlobVarList; #define SLE_ARR(base, variable, type, length) SLE_CONDARR(base, variable, type, length, 0, SL_MAX_VERSION) #define SLE_STR(base, variable, type, length) SLE_CONDSTR(base, variable, type, length, 0, SL_MAX_VERSION) #define SLE_LST(base, variable, type) SLE_CONDLST(base, variable, type, 0, SL_MAX_VERSION) +#define SLE_NULL(length) SLE_CONDNULL(length, 0, SL_MAX_VERSION) #define SLE_CONDNULL(length, from, to) SLE_CONDARR(NullStruct, null, SLE_FILE_U8 | SLE_VAR_NULL | SLF_CONFIG_NO, length, from, to) |