diff options
author | Johannes Schickel | 2008-03-17 18:10:52 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-03-17 18:10:52 +0000 |
commit | 91a800cf028d46822536d1760ab1bc1b679b86c4 (patch) | |
tree | 0cd581cefba9b081a84ec6a766825a1ee3416a4f /engines/kyra/kyra_v2.h | |
parent | 4e881243611752c6868abfa71cbf3ad824638782 (diff) | |
download | scummvm-rg350-91a800cf028d46822536d1760ab1bc1b679b86c4.tar.gz scummvm-rg350-91a800cf028d46822536d1760ab1bc1b679b86c4.tar.bz2 scummvm-rg350-91a800cf028d46822536d1760ab1bc1b679b86c4.zip |
Implemented quick (via hotkeys) save/load suppot for HoF.
svn-id: r31154
Diffstat (limited to 'engines/kyra/kyra_v2.h')
-rw-r--r-- | engines/kyra/kyra_v2.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v2.h b/engines/kyra/kyra_v2.h index f94e97b339..07c3271e05 100644 --- a/engines/kyra/kyra_v2.h +++ b/engines/kyra/kyra_v2.h @@ -308,7 +308,7 @@ protected: void updateMouse(); struct Button; - int checkInput(Button *buttonList); + int checkInput(Button *buttonList, bool mainLoop = false); void removeInputTop(); void handleInput(int x, int y); bool handleInputUnkSub(int x, int y); @@ -1167,6 +1167,17 @@ protected: uint8 _inputColorCode[7]; uint32 _scriptCountDown; int _dbgPass; + + // save/load specific + enum { + kSaveGameVersion = 1 + }; + + uint32 saveGameID() const { return 'HOFS'; } + uint32 curSaveVersion() const { return kSaveGameVersion; } + + void saveGame(const char *fileName, const char *saveName); + void loadGame(const char *fileName); }; } // end of namespace Kyra |