diff options
author | Nicola Mettifogo | 2007-11-01 14:47:33 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-11-01 14:47:33 +0000 |
commit | 7c8bf86a45ec09275484813803df5370d7867d20 (patch) | |
tree | 7594ef0909788034a5c656609b3c39f28ec345e1 /engines/parallaction/saveload.cpp | |
parent | 288f47e0341bd80302ef5585f6ef0da67d2738f5 (diff) | |
download | scummvm-rg350-7c8bf86a45ec09275484813803df5370d7867d20.tar.gz scummvm-rg350-7c8bf86a45ec09275484813803df5370d7867d20.tar.bz2 scummvm-rg350-7c8bf86a45ec09275484813803df5370d7867d20.zip |
More refactoring for gui code.
svn-id: r29355
Diffstat (limited to 'engines/parallaction/saveload.cpp')
-rw-r--r-- | engines/parallaction/saveload.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/engines/parallaction/saveload.cpp b/engines/parallaction/saveload.cpp index cad2badfb3..28839c2f26 100644 --- a/engines/parallaction/saveload.cpp +++ b/engines/parallaction/saveload.cpp @@ -373,11 +373,11 @@ int Parallaction_ns::selectSaveFile(uint16 arg_0, const char* caption, const cha -void Parallaction_ns::loadGame() { +bool Parallaction_ns::loadGame() { int _di = selectSaveFile( 0, "Load file", "Load" ); if (_di == -1) { - return; + return false; } doLoadGame(_di); @@ -387,18 +387,19 @@ void Parallaction_ns::loadGame() { setArrowCursor(); - return; + return true; } -void Parallaction_ns::saveGame() { +bool Parallaction_ns::saveGame() { - if (!scumm_stricmp(_location._name, "caveau")) - return; + if (!scumm_stricmp(_location._name, "caveau")) { + return false; + } int slot = selectSaveFile( 1, "Save file", "Save" ); if (slot == -1) { - return; + return false; } doSaveGame(slot, _saveFileName.c_str()); @@ -406,9 +407,7 @@ void Parallaction_ns::saveGame() { GUI::TimedMessageDialog dialog("Saving game...", 1500); dialog.runModal(); - return; - - + return true; } |