From 93429219abaa167bb2e55f9666663a2fd0910e99 Mon Sep 17 00:00:00 2001 From: gigaherz Date: Sun, 10 Aug 2008 21:48:23 +0000 Subject: [PATCH] - Added some code to allow panic alert messages to print to video plugin. commented out until it's approved. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@177 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/Core.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Core/Core/Src/Core.cpp b/Source/Core/Core/Src/Core.cpp index 8bd7d21b33..4c5905e5d1 100644 --- a/Source/Core/Core/Src/Core.cpp +++ b/Source/Core/Core/Src/Core.cpp @@ -91,6 +91,12 @@ SCoreStartupParameter g_CoreStartupParameter; //uck Common::Event emuThreadGoing; +bool PanicAlertToVideo(const char* text, bool yes_no) +{ + PluginVideo::Video_AddMessage(text,3000); + return true; +} + // Called from GUI thread bool Init(const SCoreStartupParameter _CoreParameter) { @@ -136,6 +142,8 @@ bool Init(const SCoreStartupParameter _CoreParameter) PluginVideo::Video_AddMessage("Emulation started.",3000); + //RegisterPanicAlertHandler(PanicAlertToVideo); + return true; }