From 0ed8af2287bdca2a7cf1ff1ec57781d45d852551 Mon Sep 17 00:00:00 2001 From: skidau Date: Tue, 13 Mar 2012 23:41:40 +1100 Subject: [PATCH] Forced reload of the native Gecko Code handler if the game overwrites it. Fixes issue 5225. --- Source/Core/Core/Src/GeckoCode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/GeckoCode.cpp b/Source/Core/Core/Src/GeckoCode.cpp index c0b7af3779..11b1ef2580 100644 --- a/Source/Core/Core/Src/GeckoCode.cpp +++ b/Source/Core/Core/Src/GeckoCode.cpp @@ -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)