diff options
| author | Scott Mansell <phiren@gmail.com> | 2015-11-08 13:58:25 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2015-11-08 14:10:26 +1300 |
| commit | 2d38a59044c6a0ff21f6b60d6aa752195cad1124 (patch) | |
| tree | 73d99db0e04926f3118e0b15f4e4d8e7652215af /Source/Core/Common/MsgHandler.cpp | |
| parent | 973118511aab5e4a0724aaeae065048e8357e9e6 (diff) | |
NoGui: Return no to yes/no panic alerts.
Also, print to stderr instead of stdio.
Diffstat (limited to 'Source/Core/Common/MsgHandler.cpp')
| -rw-r--r-- | Source/Core/Common/MsgHandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Common/MsgHandler.cpp b/Source/Core/Common/MsgHandler.cpp index 03aa744f0f..075196ced2 100644 --- a/Source/Core/Common/MsgHandler.cpp +++ b/Source/Core/Common/MsgHandler.cpp @@ -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)); #else - printf("%s\n", text); - return true; + fprintf(stderr, "%s\n", text); + + // Return no to any question (which will in general crash the emulator) + return false; #endif } |
