From a7c332f6eb970a8b49ec72898a55a0bad9cc96d8 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sun, 12 Nov 2023 21:40:16 -0700 Subject: [PATCH] Add hook location for a TWL arm7 binary --- retail/bootloaderi/include/patch.h | 2 +- retail/bootloaderi/source/arm7/hook_arm7.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/retail/bootloaderi/include/patch.h b/retail/bootloaderi/include/patch.h index 09776566c..14e4bbdd3 100644 --- a/retail/bootloaderi/include/patch.h +++ b/retail/bootloaderi/include/patch.h @@ -50,7 +50,7 @@ //extern bool cardReadFound; // patch_arm9.c -#define patchOffsetCacheFileVersion 100 // Change when new functions are being patched, some offsets removed, +#define patchOffsetCacheFileVersion 101 // Change when new functions are being patched, some offsets removed, // the offset order changed, and/or the function signatures changed (not added) typedef struct patchOffsetCacheContents { diff --git a/retail/bootloaderi/source/arm7/hook_arm7.c b/retail/bootloaderi/source/arm7/hook_arm7.c index 72d1a3b07..a5ae47bb9 100644 --- a/retail/bootloaderi/source/arm7/hook_arm7.c +++ b/retail/bootloaderi/source/arm7/hook_arm7.c @@ -227,6 +227,10 @@ int hookNdsRetailArm7( hookLocation = (u32*)0x23A5538; // DSi-Exclusive/DSiWare games break; + case 0x000268DC: + hookLocation = (u32*)0x23A5FFC; // DSi-Exclusive/DSiWare games + break; + case 0x00026DF4: hookLocation = (u32*)0x23A6AD4; // DSi-Exclusive/DSiWare games break;