diff options
author | Einar Johan Trøan Sømåen | 2012-05-09 15:38:35 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 12:42:09 +0200 |
commit | e31f23d75d9e99bfdaf03a2adc93e6087102e4a1 (patch) | |
tree | a432db9861bcc5d55e2c643cdf991f62a65dbda2 /engines | |
parent | 620b45e517a79371c1b1937f9f9a041285c22df0 (diff) | |
download | scummvm-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.cpp | 8 |
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; } |