WINTERMUTE: Make the mainloop run after initialization.

This commit is contained in:
Einar Johan Trøan Sømåen 2012-05-09 15:38:35 +02:00 committed by Einar Johan Trøan Sømåen
parent 620b45e517
commit e31f23d75d

View File

@ -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;
}