diff options
author | Bastien Bouclet | 2017-08-20 10:17:00 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-08-20 10:17:00 +0200 |
commit | 42c6f68f7a14772ade8902826a308d3fbc2f82cf (patch) | |
tree | 7817185b57902d6aeac1816d2cd846f7572752dd | |
parent | a99891c2f3189bcc2b9357a9d42a848afb48693b (diff) | |
download | scummvm-rg350-42c6f68f7a14772ade8902826a308d3fbc2f82cf.tar.gz scummvm-rg350-42c6f68f7a14772ade8902826a308d3fbc2f82cf.tar.bz2 scummvm-rg350-42c6f68f7a14772ade8902826a308d3fbc2f82cf.zip |
TITANIC: Pause the engine while the save/load dialogs are open
-rw-r--r-- | engines/titanic/titanic.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/titanic/titanic.cpp b/engines/titanic/titanic.cpp index 9b1b9d66d3..b6ee868877 100644 --- a/engines/titanic/titanic.cpp +++ b/engines/titanic/titanic.cpp @@ -267,7 +267,10 @@ void TitanicEngine::showScummVMSaveDialog() { GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Save game:"), _("Save"), true); + pauseEngine(true); int slot = dialog->runModalWithCurrentTarget(); + pauseEngine(false); + if (slot >= 0) { Common::String desc = dialog->getResultString(); @@ -289,7 +292,10 @@ void TitanicEngine::showScummVMRestoreDialog() { GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore"), false); + pauseEngine(true); int slot = dialog->runModalWithCurrentTarget(); + pauseEngine(false); + if (slot >= 0) { loadGameState(slot); } |