diff options
author | Sven Hesse | 2007-04-08 00:08:26 +0000 |
---|---|---|
committer | Sven Hesse | 2007-04-08 00:08:26 +0000 |
commit | dee8a04168fb0d0ccc58b73dd9fb8d0be9499b17 (patch) | |
tree | f4e97855cff99a56b6ae703f7734242969f4785c /engines/gob/gob.h | |
parent | 614ae1c08cae7d5c9b6f4ecddfa6050c41aa433f (diff) | |
download | scummvm-rg350-dee8a04168fb0d0ccc58b73dd9fb8d0be9499b17.tar.gz scummvm-rg350-dee8a04168fb0d0ccc58b73dd9fb8d0be9499b17.tar.bz2 scummvm-rg350-dee8a04168fb0d0ccc58b73dd9fb8d0be9499b17.zip |
Restructured saving/loading. Should work for Gob3 now, too...
svn-id: r26414
Diffstat (limited to 'engines/gob/gob.h')
-rw-r--r-- | engines/gob/gob.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/engines/gob/gob.h b/engines/gob/gob.h index c74b7632ef..c3151b9e7e 100644 --- a/engines/gob/gob.h +++ b/engines/gob/gob.h @@ -48,6 +48,7 @@ class PalAnim; class Parse; class Scenery; class Util; +class SaveLoad; class Adlib; #define VARP(offs) (_vm->_global->_inter_variables + (offs)) @@ -96,13 +97,6 @@ enum { kDebugCollisions = 1 << 8 }; -enum SaveFiles { - SAVE_CAT = 0, // Saves - SAVE_SAV, // Holds a sprite, normally a cache for Draw::_backBuffer - // (see Global::_savedBack) - SAVE_BLO // Notes -}; - inline char *strncpy0(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n] = 0; @@ -163,21 +157,11 @@ private: class GobEngine : public Engine { protected: - char **_saveFiles; - char *_saveSlotFile; - byte _saveIndex[600]; - byte _saveIndexSizes[600]; GobEngine *_vm; int go(); int init(); - const char *getSaveSlotFile(int slot); - bool saveGame(int saveSlot, int16 dataVar, int32 size, int32 offset); - bool loadGame(int saveSlot, int16 dataVar, int32 size, int32 offset); - uint32 writeDataEndian(Common::OutSaveFile &out, byte *varBuf, byte *sizeBuf, int32 size); - uint32 readDataEndian(Common::InSaveFile &in, byte *varBuf, byte *sizeBuf, int32 size); - bool detectGame(); public: @@ -210,14 +194,12 @@ public: Parse *_parse; Scenery *_scenery; Inter *_inter; + SaveLoad *_saveLoad; Adlib *_adlib; ImdPlayer *_imdPlayer; void shutdown(); - int32 getSaveSize(enum SaveFiles sFile); - void saveGameData(enum SaveFiles sFile, int16 dataVar, int32 size, int32 offset); - void loadGameData(enum SaveFiles sFile, int16 dataVar, int32 size, int32 offset); const char *getLangDesc(int16 language) { if ((language < 0) || (language > 8)) language = 2; |