Skip to content

Commit

Permalink
TITANIC: Pause the engine while the save/load dialogs are open
Browse files Browse the repository at this point in the history
  • Loading branch information
bgK committed Aug 20, 2017
1 parent a99891c commit 42c6f68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engines/titanic/titanic.cpp
Expand Up @@ -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();

Expand All @@ -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);
}
Expand Down

0 comments on commit 42c6f68

Please sign in to comment.