Skip to content

Commit

Permalink
Add hook location for a TWL arm7 binary
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 13, 2023
1 parent 36a5b09 commit a7c332f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion retail/bootloaderi/include/patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions retail/bootloaderi/source/arm7/hook_arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7c332f

Please sign in to comment.