From fee3d05b79749bc5732720af568b6931914df3cd Mon Sep 17 00:00:00 2001 From: JoshuaMKW <60854312+JoshuaMKW@users.noreply.github.com> Date: Wed, 26 Aug 2020 03:58:25 -0500 Subject: [PATCH] Emergency hotfix #1, Patched hook corruption --- bin/geckoloader.bin | Bin 804 -> 788 bytes loader.cpp | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/geckoloader.bin b/bin/geckoloader.bin index 54ab518dfa858ff77395ac524692657678948c94..cc4fe7f82eb4cbd9bbe78d2b73bbbdbe2a1070ce 100644 GIT binary patch delta 20 ccmZ3&Hid11KI5K^2K7wL0+Z)WKE#v+07&ZxAOHXW delta 36 qcmbQjwuEhhKI55<2K7wB3N{Ju9u~>&J`KqX0zk|#p>FafrX&E+jtfix diff --git a/loader.cpp b/loader.cpp index fa7e725..9ed31ec 100644 --- a/loader.cpp +++ b/loader.cpp @@ -351,7 +351,7 @@ static void initMods() if (((ppc >> 24) & 0xFF) > 0x47 && ((ppc >> 24) & 0xFF) < 0x4C) { Memory::Direct::branch((void*)fillInField, (void*)returnAddress, ppc & 1); } else { - Memory::Direct::write(fillInField, *gpModInfo.codehandlerHook); + Memory::Direct::write(fillInField, ppc); } /*Write branch back to the hook address + 4*/