Added a check for active Gecko codes before installing the Gecko code handler.

Fixes issue 5279.
This commit is contained in:
skidau 2012-03-23 23:36:23 +11:00
parent 41bcf657f8
commit 33e20cf76d

View File

@ -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);