mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
new MsgHandler replacing common
Most things moved to macros git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1542 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a46392f243
commit
b0f17043bd
10 changed files with 103 additions and 170 deletions
|
@ -45,7 +45,7 @@
|
|||
IMPLEMENT_APP(DolphinApp)
|
||||
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
bool wxPanicAlert(const char* text, bool /*yes_no*/);
|
||||
bool wxMsgAlert(const char*, const char*, bool);
|
||||
#endif
|
||||
|
||||
CFrame* main_frame = NULL;
|
||||
|
@ -92,7 +92,7 @@ bool DolphinApp::OnInit()
|
|||
#endif
|
||||
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
RegisterPanicAlertHandler(&wxPanicAlert);
|
||||
RegisterMsgAlertHandler(&wxMsgAlert);
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -264,10 +264,11 @@ void DolphinApp::OnEndSession()
|
|||
}
|
||||
|
||||
|
||||
bool wxPanicAlert(const char* text, bool /*yes_no*/)
|
||||
{
|
||||
wxMessageBox(wxString::FromAscii(text), _T("PANIC ALERT"));
|
||||
return(true);
|
||||
bool wxMsgAlert(const char* caption, const char* text,
|
||||
bool yes_no) {
|
||||
return wxYES == wxMessageBox(wxString::FromAscii(text),
|
||||
wxString::FromAscii(caption),
|
||||
(yes_no)?wxYES_NO:wxOK);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue