From 42c6f68f7a14772ade8902826a308d3fbc2f82cf Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 20 Aug 2017 10:17:00 +0200 Subject: TITANIC: Pause the engine while the save/load dialogs are open --- engines/titanic/titanic.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/titanic/titanic.cpp') 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); } -- cgit v1.2.3