Forced reload of the native Gecko Code handler if the game overwrites it.

Fixes issue 5225.
This commit is contained in:
skidau 2012-03-13 23:41:40 +11:00
parent b37c468039
commit 0ed8af2287
1 changed files with 4 additions and 1 deletions

View File

@ -255,7 +255,10 @@ void RunCodeHandler()
{
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats)
{
if (!code_handler_installed)
u8 *gameId = Memory::GetPointer(0x80000000);
u8 *wiirdId = Memory::GetPointer(0x80001800);
if (!code_handler_installed || memcmp(gameId, wiirdId, 6))
code_handler_installed = InstallCodeHandler();
if (code_handler_installed)