diff options
author | Max Horn | 2002-12-21 12:09:28 +0000 |
---|---|---|
committer | Max Horn | 2002-12-21 12:09:28 +0000 |
commit | fca337f590095c3a9d86cb956e7d6512fe76e70b (patch) | |
tree | b830ac1fdcf2237cf99c91b10bcf37395b18568a /scumm | |
parent | 1943be0ffdb88ad896efae55085194b4d0a20de2 (diff) | |
download | scummvm-rg350-fca337f590095c3a9d86cb956e7d6512fe76e70b.tar.gz scummvm-rg350-fca337f590095c3a9d86cb956e7d6512fe76e70b.tar.bz2 scummvm-rg350-fca337f590095c3a9d86cb956e7d6512fe76e70b.zip |
popup message when save was succesful
svn-id: r6040
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scummvm.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index e5e2221ce4..5ceefe6bdb 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -452,7 +452,9 @@ int Scumm::scummLoop(int delta) if (_saveLoadFlag) { bool success; - const char *errMsg = NULL; + const char *errMsg = "Succesfully saved game state to file:\n\n%s"; + char filename[256]; + if (_saveLoadFlag == 1) { success = saveState(_saveLoadSlot, _saveLoadCompatible); if (!success) @@ -471,10 +473,17 @@ int Scumm::scummLoop(int delta) _vars[VAR_GAME_LOADED] = 203; } + makeSavegameName(filename, _saveLoadSlot, _saveLoadCompatible); if (!success) { - char filename[256]; - makeSavegameName(filename, _saveLoadSlot, _saveLoadCompatible); displayError(errMsg, filename); + } else if (_saveLoadSlot != 0) { + // Display "Save succesful" message, except for auto saves + char buf[1024]; + sprintf(buf, errMsg, filename); + + Dialog *dialog = new MessageDialog(_newgui, buf, 1500, false); + runDialog(dialog); + delete dialog; } _saveLoadFlag = 0; _lastSaveTime = _system->get_msecs(); |