diff options
author | Max Horn | 2008-11-03 18:32:16 +0000 |
---|---|---|
committer | Max Horn | 2008-11-03 18:32:16 +0000 |
commit | 55c10e0ec6f2d6ea7c58ec1e4b74e5552fda5ddc (patch) | |
tree | 4df4d54fc783f837004ab2419c90aaf5c7f5930a /engines/igor | |
parent | 646666125232064f2c4657c4025433b243e42af9 (diff) | |
download | scummvm-rg350-55c10e0ec6f2d6ea7c58ec1e4b74e5552fda5ddc.tar.gz scummvm-rg350-55c10e0ec6f2d6ea7c58ec1e4b74e5552fda5ddc.tar.bz2 scummvm-rg350-55c10e0ec6f2d6ea7c58ec1e4b74e5552fda5ddc.zip |
Patch #2122869: ALL: Common load dialog
svn-id: r34883
Diffstat (limited to 'engines/igor')
-rw-r--r-- | engines/igor/igor.h | 4 | ||||
-rw-r--r-- | engines/igor/saveload.cpp | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/engines/igor/igor.h b/engines/igor/igor.h index 99155c5d43..418a7ad6b4 100644 --- a/engines/igor/igor.h +++ b/engines/igor/igor.h @@ -427,8 +427,8 @@ protected: void dialogueReplyToQuestion(int x, int y, int r, int g, int b, int reply = 0); void saveOrLoadGameState(TypeSerializer &typeSerializer); - void loadGameState(int slot); - void saveGameState(int slot); + int loadGameState(int slot); + int saveGameState(int slot); void generateGameStateFileName(int num, char *dst, int len) const; MidiPlayer *_midiPlayer; diff --git a/engines/igor/saveload.cpp b/engines/igor/saveload.cpp index 96bacdf1ac..a87ecc0ba5 100644 --- a/engines/igor/saveload.cpp +++ b/engines/igor/saveload.cpp @@ -156,7 +156,7 @@ void IgorEngine::saveOrLoadGameState(TypeSerializer &typeSerializer) { } } -void IgorEngine::loadGameState(int slot) { +int IgorEngine::loadGameState(int slot) { char name[64]; generateGameStateFileName(slot, name, 63); Common::InSaveFile *isf = _saveFileMan->openForLoading(name); @@ -175,9 +175,11 @@ void IgorEngine::loadGameState(int slot) { } debug(0, "Loaded state, current part %d", _currentPart); } + + return 0; // TODO: return success/failure } -void IgorEngine::saveGameState(int slot) { +int IgorEngine::saveGameState(int slot) { char name[64]; generateGameStateFileName(slot, name, 63); Common::OutSaveFile *osf = _saveFileMan->openForSaving(name); @@ -187,6 +189,8 @@ void IgorEngine::saveGameState(int slot) { saveOrLoadGameState(ts); delete osf; } + + return 0; // TODO: return success/failure } void IgorEngine::generateGameStateFileName(int num, char *dst, int len) const { |