mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-29 19:44:49 +02:00
Use game title to display error messages
This commit is contained in:
parent
75d9bb5f19
commit
4dcae82bb1
1 changed files with 7 additions and 3 deletions
10
src/main.mm
10
src/main.mm
|
@ -396,13 +396,17 @@ int main(int argc, char *argv[]) {
|
||||||
SDL_WaitThread(rgssThread, 0);
|
SDL_WaitThread(rgssThread, 0);
|
||||||
else
|
else
|
||||||
SDL_ShowSimpleMessageBox(
|
SDL_ShowSimpleMessageBox(
|
||||||
SDL_MESSAGEBOX_ERROR, conf.windowTitle.c_str(),
|
SDL_MESSAGEBOX_ERROR, conf.game.title.c_str(),
|
||||||
"The RGSS script seems to be stuck and mkxp will now force quit",
|
[OFString
|
||||||
|
stringWithFormat:
|
||||||
|
@"The RGSS script seems to be stuck. %s will now force quit.",
|
||||||
|
conf.game.title.c_str()]
|
||||||
|
.UTF8String,
|
||||||
win);
|
win);
|
||||||
|
|
||||||
if (!rtData.rgssErrorMsg.empty()) {
|
if (!rtData.rgssErrorMsg.empty()) {
|
||||||
Debug() << rtData.rgssErrorMsg;
|
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);
|
rtData.rgssErrorMsg.c_str(), win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue