mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
TITANIC: Pause the engine while the save/load dialogs are open
This commit is contained in:
parent
a99891c2f3
commit
42c6f68f7a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user