aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2017-08-20 10:17:00 +0200
committerBastien Bouclet2017-08-20 10:17:00 +0200
commit42c6f68f7a14772ade8902826a308d3fbc2f82cf (patch)
tree7817185b57902d6aeac1816d2cd846f7572752dd
parenta99891c2f3189bcc2b9357a9d42a848afb48693b (diff)
downloadscummvm-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.cpp6
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);
}