mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
NoGui: Return no to yes/no panic alerts.
Also, print to stderr instead of stdio.
This commit is contained in:
parent
973118511a
commit
2d38a59044
@ -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…
x
Reference in New Issue
Block a user