[Scummvm-git-logs] scummvm master -> 42c6f68f7a14772ade8902826a308d3fbc2f82cf
bgK
bastien.bouclet at gmail.com
Sun Aug 20 10:27:48 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
42c6f68f7a TITANIC: Pause the engine while the save/load dialogs are open
Commit: 42c6f68f7a14772ade8902826a308d3fbc2f82cf
https://github.com/scummvm/scummvm/commit/42c6f68f7a14772ade8902826a308d3fbc2f82cf
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2017-08-20T10:17:00+02:00
Commit Message:
TITANIC: Pause the engine while the save/load dialogs are open
Changed paths:
engines/titanic/titanic.cpp
diff --git a/engines/titanic/titanic.cpp b/engines/titanic/titanic.cpp
index 9b1b9d6..b6ee868 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);
}
More information about the Scummvm-git-logs
mailing list