aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-05-09 15:38:35 +0200
committerEinar Johan Trøan Sømåen2012-06-02 12:42:09 +0200
commite31f23d75d9e99bfdaf03a2adc93e6087102e4a1 (patch)
treea432db9861bcc5d55e2c643cdf991f62a65dbda2 /engines
parent620b45e517a79371c1b1937f9f9a041285c22df0 (diff)
downloadscummvm-rg350-e31f23d75d9e99bfdaf03a2adc93e6087102e4a1.tar.gz
scummvm-rg350-e31f23d75d9e99bfdaf03a2adc93e6087102e4a1.tar.bz2
scummvm-rg350-e31f23d75d9e99bfdaf03a2adc93e6087102e4a1.zip
WINTERMUTE: Make the mainloop run after initialization.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/wintermute.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp
index 1faa4a44f0..6546dcadaf 100644
--- a/engines/wintermute/wintermute.cpp
+++ b/engines/wintermute/wintermute.cpp
@@ -104,8 +104,14 @@ namespace WinterMute {
debugC(3, kWinterMuteDebugExample | kWinterMuteDebugExample2, "Example debug call two");
CAdGame *game = new CAdGame;
- CBPlatform::Initialize(game, NULL, 0);
+ int ret = 1;
+
+ ret = CBPlatform::Initialize(game, NULL, 0);
+
+ if (ret == 0) {
+ ret = CBPlatform::MessageLoop();
+ }
return Common::kNoError;
}