From 4dcae82bb1a3171683cb32a417e9189097e06a73 Mon Sep 17 00:00:00 2001 From: Roza Date: Tue, 3 Mar 2020 23:47:17 -0500 Subject: [PATCH] Use game title to display error messages --- src/main.mm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.mm b/src/main.mm index 9a3ff20..6b15350 100644 --- a/src/main.mm +++ b/src/main.mm @@ -396,13 +396,17 @@ int main(int argc, char *argv[]) { SDL_WaitThread(rgssThread, 0); else SDL_ShowSimpleMessageBox( - SDL_MESSAGEBOX_ERROR, conf.windowTitle.c_str(), - "The RGSS script seems to be stuck and mkxp will now force quit", + SDL_MESSAGEBOX_ERROR, conf.game.title.c_str(), + [OFString + stringWithFormat: + @"The RGSS script seems to be stuck. %s will now force quit.", + conf.game.title.c_str()] + .UTF8String, win); if (!rtData.rgssErrorMsg.empty()) { Debug() << rtData.rgssErrorMsg; - SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, conf.windowTitle.c_str(), + SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, conf.game.title.c_str(), rtData.rgssErrorMsg.c_str(), win); }