diff options
author | rubidium <rubidium@openttd.org> | 2007-09-22 13:56:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-22 13:56:38 +0000 |
commit | 81555c732d0718c7ceb8990012012055377a7017 (patch) | |
tree | 1f92395e697eada656f8d47222f9f227028ec271 /src/saveload.h | |
parent | ed96cd271123b9c9936c08b9c721afe2b4695c56 (diff) | |
download | openttd-81555c732d0718c7ceb8990012012055377a7017.tar.xz |
(svn r11139) -Codechange: add support for persistent storage for NewGRFs.
Diffstat (limited to 'src/saveload.h')
-rw-r--r-- | src/saveload.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/saveload.h b/src/saveload.h index 793b63dba..c684030bc 100644 --- a/src/saveload.h +++ b/src/saveload.h @@ -211,15 +211,16 @@ typedef SaveLoad SaveLoadGlobVarList; #define SLE_WRITEBYTE(base, variable, value) SLE_GENERAL(SL_WRITEBYTE, base, variable, 0, 0, value, value) /* The same as the ones at the top, only the offset is given directly; used for unions */ -#define SLE_GENERALX(cmd, offset, type, param1, param2) {false, cmd, type, 0, param1, param2, (void*)(offset)} -#define SLE_CONDVARX(offset, type, from, to) SLE_GENERALX(SL_VAR, offset, type, from, to) -#define SLE_CONDREFX(offset, type, from, to) SLE_GENERALX(SL_REF, offset, type, from, to) +#define SLE_GENERALX(cmd, offset, type, length, param1, param2) {false, cmd, type, length, param1, param2, (void*)(offset)} +#define SLE_CONDVARX(offset, type, from, to) SLE_GENERALX(SL_VAR, offset, type, 0, from, to) +#define SLE_CONDARRX(offset, type, length, from, to) SLE_GENERALX(SL_ARR, offset, type, length, from, to) +#define SLE_CONDREFX(offset, type, from, to) SLE_GENERALX(SL_REF, offset, type, 0, from, to) #define SLE_VARX(offset, type) SLE_CONDVARX(offset, type, 0, SL_MAX_VERSION) #define SLE_REFX(offset, type) SLE_CONDREFX(offset, type, 0, SL_MAX_VERSION) -#define SLE_WRITEBYTEX(offset, something) SLE_GENERALX(SL_WRITEBYTE, offset, 0, something, 0) -#define SLE_VEH_INCLUDEX() SLE_GENERALX(SL_VEH_INCLUDE, 0, 0, 0, SL_MAX_VERSION) +#define SLE_WRITEBYTEX(offset, something) SLE_GENERALX(SL_WRITEBYTE, offset, 0, 0, something, 0) +#define SLE_VEH_INCLUDEX() SLE_GENERALX(SL_VEH_INCLUDE, 0, 0, 0, 0, SL_MAX_VERSION) /* End marker */ #define SLE_END() {false, SL_END, 0, 0, 0, 0, NULL} |