From 2d38a59044c6a0ff21f6b60d6aa752195cad1124 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sun, 8 Nov 2015 13:58:25 +1300 Subject: [PATCH] NoGui: Return no to yes/no panic alerts. Also, print to stderr instead of stdio. --- Source/Core/Common/MsgHandler.cpp | 6 ++++-- 1 file 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 }