aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2017-08-20 09:56:55 +0200
committerBastien Bouclet2017-08-20 10:01:24 +0200
commita99891c2f3189bcc2b9357a9d42a848afb48693b (patch)
treea632cd7f4f85846f301309e2f5773a57c09d3c65 /engines
parentc4f48f35c6ed399dbd1930589c55b4135fc327b4 (diff)
downloadscummvm-rg350-a99891c2f3189bcc2b9357a9d42a848afb48693b.tar.gz
scummvm-rg350-a99891c2f3189bcc2b9357a9d42a848afb48693b.tar.bz2
scummvm-rg350-a99891c2f3189bcc2b9357a9d42a848afb48693b.zip
MOHAWK: Riven: Pause the engine while the load dialog is open
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/riven.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index c7f8d1c3d9..ea3e2ce7ec 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -510,7 +510,10 @@ void MohawkEngine_Riven::delay(uint32 ms) {
void MohawkEngine_Riven::runLoadDialog() {
GUI::SaveLoadChooser slc(_("Load game:"), _("Load"), false);
+ pauseEngine(true);
int slot = slc.runModalWithCurrentTarget();
+ pauseEngine(false);
+
if (slot >= 0) {
loadGameStateAndDisplayError(slot);
}