Print RGSS thread error message to console

This commit is contained in:
Jonas Kulla 2014-07-19 02:59:05 +02:00
parent 813130fbf6
commit 5640c3d04b
1 changed files with 3 additions and 0 deletions

View File

@ -284,8 +284,11 @@ int main(int argc, char *argv[])
"The RGSS script seems to be stuck and mkxp will now force quit", win); "The RGSS script seems to be stuck and mkxp will now force quit", win);
if (!rtData.rgssErrorMsg.empty()) if (!rtData.rgssErrorMsg.empty())
{
Debug() << rtData.rgssErrorMsg;
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, conf.game.title.c_str(), SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, conf.game.title.c_str(),
rtData.rgssErrorMsg.c_str(), win); rtData.rgssErrorMsg.c_str(), win);
}
/* Clean up any remainin events */ /* Clean up any remainin events */
eventThread.cleanup(); eventThread.cleanup();