mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01: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:
parent
78ec771063
commit
22d66f51a8
@ -175,6 +175,8 @@ bool DolphinApp::OnInit()
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
EXTENDEDTRACEINITIALIZE(".");
|
EXTENDEDTRACEINITIALIZE(".");
|
||||||
SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter);
|
SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter);
|
||||||
|
#else
|
||||||
|
wxHandleFatalExceptions(true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: if First Boot
|
// TODO: if First Boot
|
||||||
@ -423,6 +425,11 @@ int DolphinApp::OnExit()
|
|||||||
return wxApp::OnExit();
|
return wxApp::OnExit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DolphinApp::OnFatalException()
|
||||||
|
{
|
||||||
|
WiimoteReal::Shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ------------
|
// ------------
|
||||||
// Talk to GUI
|
// Talk to GUI
|
||||||
|
@ -28,6 +28,7 @@ public:
|
|||||||
bool OnInit();
|
bool OnInit();
|
||||||
void OnEndSession();
|
void OnEndSession();
|
||||||
int OnExit();
|
int OnExit();
|
||||||
|
void OnFatalException();
|
||||||
CFrame* GetCFrame();
|
CFrame* GetCFrame();
|
||||||
void InitLanguageSupport();
|
void InitLanguageSupport();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user