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
This commit is contained in:
Jordan Woyak 2011-02-03 08:12:47 +00:00
parent 109a1dcd66
commit d5550c19fd
1 changed files with 5 additions and 1 deletions

View File

@ -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,6 +161,7 @@ bool RunActiveCodes()
gcodes_end = active_codes.end();
for (; gcodes_iter!=gcodes_end; ++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))