diff options
| author | nakeee <nakeee@gmail.com> | 2009-01-18 08:47:24 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2009-01-18 08:47:24 +0000 |
| commit | 38f8221bfc351293ea1214366f240a89828710c4 (patch) | |
| tree | 5df22e3b9cb26d92c029e38d988623ceb781a965 /Source/Core/Common/Src/MsgHandler.cpp | |
| parent | 53d85bce9e4c26088ec8a18df003275b00fc993c (diff) | |
reverted 1914, but updated the default handler instead
windows now suppose to use it until we fix the debug window
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1915 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/MsgHandler.cpp')
| -rw-r--r-- | Source/Core/Common/Src/MsgHandler.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Source/Core/Common/Src/MsgHandler.cpp b/Source/Core/Common/Src/MsgHandler.cpp index fdb8ad97b2..61888a8c6f 100644 --- a/Source/Core/Common/Src/MsgHandler.cpp +++ b/Source/Core/Common/Src/MsgHandler.cpp @@ -68,18 +68,16 @@ bool MsgAlert(const char* caption, bool yes_no, int Style, const char* format, . // ŻŻŻŻŻŻŻŻŻ bool DefaultMsgHandler(const char* caption, const char* text, bool yes_no, int Style) { - #ifdef _WIN32 - if (yes_no) - // Return true for IDYES - return IDYES == MessageBox(0, "Why is there no icon", caption, - MB_ICONQUESTION | MB_YESNO); - else { - MessageBox(0, text, caption, MB_ICONWARNING); - return true; - } - #else - printf("%s\n", text); - return true; - #endif +#ifdef _WIN32 + int STYLE = MB_ICONINFORMATION; + if(Style == QUESTION) STYLE = MB_ICONQUESTION; + if(Style == WARNING) STYLE = MB_ICONWARNING; + + return IDYES == MessageBox(0, text, caption, STYLE | (yes_no ? MB_YESNO : MB_OK)); + +#else + printf("%s\n", text); + return true; +#endif } |
