mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
Have wxWidgets install signal handlers to catch crashes
and disconnect any wiimotes. The Windows code has special handling of both exceptions and bluetooth connection state, neither of which I really understand, so this is enabled on the other platforms only. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6821 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -175,6 +175,8 @@ bool DolphinApp::OnInit()
|
||||
#ifdef _WIN32
|
||||
EXTENDEDTRACEINITIALIZE(".");
|
||||
SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter);
|
||||
#else
|
||||
wxHandleFatalExceptions(true);
|
||||
#endif
|
||||
|
||||
// TODO: if First Boot
|
||||
@ -423,6 +425,11 @@ int DolphinApp::OnExit()
|
||||
return wxApp::OnExit();
|
||||
}
|
||||
|
||||
void DolphinApp::OnFatalException()
|
||||
{
|
||||
WiimoteReal::Shutdown();
|
||||
}
|
||||
|
||||
|
||||
// ------------
|
||||
// Talk to GUI
|
||||
|
Reference in New Issue
Block a user