From 03088eee2f8bb8d873a4c235478cbbf9a865dcbf Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 14 Dec 2008 12:30:37 +0000 Subject: [PATCH] returned WXpanicalert it should be extended to get a message and the code in common.cpp cleaned up git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1529 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/Main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 9a42d79524..e1fd87f87e 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -44,6 +44,10 @@ IMPLEMENT_APP(DolphinApp) +#if defined(HAVE_WX) && HAVE_WX +bool wxPanicAlert(const char* text, bool /*yes_no*/); +#endif + CFrame* main_frame = NULL; CCodeWindow* g_pCodeWindow = NULL; @@ -87,8 +91,8 @@ bool DolphinApp::OnInit() _CrtSetDbgFlag(tmpflag); #endif -#ifndef _WIN32 -// RegisterPanicAlertHandler(&wxPanicAlert); +#if defined(HAVE_WX) && HAVE_WX + RegisterPanicAlertHandler(&wxPanicAlert); #endif #ifdef _WIN32