From d5550c19fd9b27b5fa4dbae3c7babe8b9dc0d29a Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Thu, 3 Feb 2011 08:12:47 +0000 Subject: [PATCH] Temporarily disable gecko codes when they fail to avoid infinite error messages. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7048 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/GeckoCode.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/GeckoCode.cpp b/Source/Core/Core/Src/GeckoCode.cpp index e13763a8bb..95a1027afa 100644 --- a/Source/Core/Core/Src/GeckoCode.cpp +++ b/Source/Core/Core/Src/GeckoCode.cpp @@ -136,6 +136,9 @@ bool RunGeckoCode(GeckoCode& gecko_code) // code failed if (false == result) { + // disable code to stop annoying error messages + gecko_code.enabled = false; + PanicAlertT("GeckoCode failed to run (CT%i CST%i) (%s)" "\n(either a bad code or the code type is not yet supported.)" , code.type, code.subtype, gecko_code.name.c_str()); @@ -158,7 +161,8 @@ bool RunActiveCodes() gcodes_end = active_codes.end(); for (; gcodes_iter!=gcodes_end; ++gcodes_iter) { - RunGeckoCode(*gcodes_iter); + if (gcodes_iter->enabled) + RunGeckoCode(*gcodes_iter); // we don't need to stop all codes if one fails, maybe //if (false == RunGeckoCode(*gcodes_iter)) //return false;