Skip to content

Commit a13a65f

Browse files
committed
Ensure all instances of the KEYINPUT register are patched
1 parent 60234af commit a13a65f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

retail/bootloader/source/arm7/patch_arm9.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,7 @@ void patchKeyInputs(const tNDSHeader* ndsHeader, const module_params_t* modulePa
12871287
const u32 signature = 0x04000130;
12881288
const u32 signatureHeader = isSdk5(moduleParams) ? 0x02FFFFA8 : 0x027FFFA8;
12891289
const u32 newOffset = isSdk5(moduleParams) ? 0x02FFFF78 : 0x027FFF78;
1290+
extern u32 iUncompressedSize;
12901291

12911292
u32* offset = ndsHeader->arm9destination;
12921293
for (int i = 0; i < iUncompressedSize/4; i++) {

retail/bootloaderi/source/arm7/patch_arm9.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,7 @@ void patchKeyInputs(const tNDSHeader* ndsHeader, const module_params_t* modulePa
17801780
const u32 signature = 0x04000130;
17811781
const u32 signatureHeader = isSdk5(moduleParams) ? 0x02FFFFA8 : 0x027FFFA8;
17821782
const u32 newOffset = isSdk5(moduleParams) ? 0x02FFFF78 : 0x027FFF78;
1783+
extern u32 iUncompressedSize;
17831784

17841785
u32* offset = ndsHeader->arm9destination;
17851786
for (int i = 0; i < iUncompressedSize/4; i++) {

0 commit comments

Comments
 (0)