Merge pull request #3241 from phire/nogui-assert
NoGui: Return no to yes/no panic alerts.
This commit is contained in:
commit
8b3c2c1ba7
|
@ -99,8 +99,10 @@ bool DefaultMsgHandler(const char* caption, const char* text, bool yes_no, int S
|
||||||
|
|
||||||
return IDYES == MessageBox(0, UTF8ToTStr(text).c_str(), UTF8ToTStr(caption).c_str(), STYLE | (yes_no ? MB_YESNO : MB_OK));
|
return IDYES == MessageBox(0, UTF8ToTStr(text).c_str(), UTF8ToTStr(caption).c_str(), STYLE | (yes_no ? MB_YESNO : MB_OK));
|
||||||
#else
|
#else
|
||||||
printf("%s\n", text);
|
fprintf(stderr, "%s\n", text);
|
||||||
return true;
|
|
||||||
|
// Return no to any question (which will in general crash the emulator)
|
||||||
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue