diff options
author | Sven Hesse | 2006-11-19 17:52:52 +0000 |
---|---|---|
committer | Sven Hesse | 2006-11-19 17:52:52 +0000 |
commit | 2454f78589a6ee1d320d9b3f62b8f43106db1a48 (patch) | |
tree | a75880fd70a192f94c6c4d6bfd0e1e0732798303 /engines/gob/gob.h | |
parent | 55da3104cc4a9331ac9db2f525e296641fc8f84b (diff) | |
download | scummvm-rg350-2454f78589a6ee1d320d9b3f62b8f43106db1a48.tar.gz scummvm-rg350-2454f78589a6ee1d320d9b3f62b8f43106db1a48.tar.bz2 scummvm-rg350-2454f78589a6ee1d320d9b3f62b8f43106db1a48.zip |
Implemented (currently still endian-unsafe) save/load
svn-id: r24745
Diffstat (limited to 'engines/gob/gob.h')
-rw-r--r-- | engines/gob/gob.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/gob/gob.h b/engines/gob/gob.h index 2a2201115b..e13b959955 100644 --- a/engines/gob/gob.h +++ b/engines/gob/gob.h @@ -25,6 +25,7 @@ #include "common/stdafx.h" #include "common/system.h" +#include "common/savefile.h" #include "engines/engine.h" @@ -81,6 +82,12 @@ enum { DEBUG_COLLISIONS = 1 << 8 }; +enum SaveFiles { + SAVE_CAT = 0, + SAVE_SAV, + SAVE_BLO +}; + class GobEngine : public Engine { protected: int go(); @@ -98,6 +105,7 @@ public: Common::Language _language; char *_startTot; char *_startTot0; + char **_saveFiles; bool _copyProtection; bool _quitRequested; @@ -123,6 +131,10 @@ public: Music *_music; void writeVarDebug(uint32 offs, uint32 v); + inline uint32 getSaveSize(Common::InSaveFile &in); + int32 getSaveSize(enum SaveFiles sFile); + void saveGame(enum SaveFiles sFile, int16 dataVar, int32 size, int32 offset); + void loadGame(enum SaveFiles sFile, int16 dataVar, int32 size, int32 offset); }; } // End of namespace Gob |