From 33e20cf76db25ce9678d83046b6f1cef973d6e5c Mon Sep 17 00:00:00 2001 From: skidau Date: Fri, 23 Mar 2012 23:36:23 +1100 Subject: [PATCH] Added a check for active Gecko codes before installing the Gecko code handler. Fixes issue 5279. --- Source/Core/Core/Src/GeckoCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/GeckoCode.cpp b/Source/Core/Core/Src/GeckoCode.cpp index 11b1ef2580..852a961644 100644 --- a/Source/Core/Core/Src/GeckoCode.cpp +++ b/Source/Core/Core/Src/GeckoCode.cpp @@ -253,7 +253,7 @@ bool RunActiveCodes() void RunCodeHandler() { - if (SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats) + if (SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats && active_codes.size() > 1) { u8 *gameId = Memory::GetPointer(0x80000000); u8 *wiirdId = Memory::GetPointer(0x80001800);