diff options
author | withmorten <morten.with@gmail.com> | 2021-07-07 17:34:02 +0200 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-07-10 02:06:43 +0200 |
commit | 6f103a3b8246ed4a883abaea63c6682cdefc6752 (patch) | |
tree | 0a647e32813ec2990b3b3ecc647acfc8bb26c8dc /src/save/SaveBuf.h | |
parent | Use CPad functions to check key states in script loader (diff) | |
download | re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.gz re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.bz2 re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.lz re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.xz re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.zst re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.zip |
Diffstat (limited to '')
-rw-r--r-- | src/save/SaveBuf.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/save/SaveBuf.h b/src/save/SaveBuf.h index 6e9b3ae9..d0817e9a 100644 --- a/src/save/SaveBuf.h +++ b/src/save/SaveBuf.h @@ -64,6 +64,14 @@ WriteSaveBuf(uint8 *&buf, uint32 &length, const T &value) return p; } +#ifdef COMPATIBLE_SAVES +inline void +ZeroSaveBuf(uint8 *&buf, uint32 length) +{ + memset(buf, 0, length); + SkipSaveBuf(buf, length); +} +#endif #define SAVE_HEADER_SIZE (4*sizeof(char)+sizeof(uint32)) |