Skip to content

Commit

Permalink
Merge pull request #29 from ahezard/card
Browse files Browse the repository at this point in the history
Fix a small bug fro save v1
  • Loading branch information
ahezard authored Jan 14, 2017
2 parents c9d316d + 9680408 commit 6913366
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bootloader/source/card_patcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,12 +644,16 @@ u32 savePatchV1 (const tNDSHeader* ndsHeader, u32* cardEngineLocation, module_pa
u32 specificWramAddr = *(u32*)(JumpTableFunc + 0x10);
// if out of specific ram range...
if (specificWramAddr < 0x37F8000 || specificWramAddr > 0x380FFFF) {
JumpTableFunc +=
dbg_printf("Retry the search\n");
JumpTableFunc =
getOffset(JumpTableFunc,
0x18000 - JumpTableFunc, &cardstructAddr, 1, 1) + 4;
dbg_printf("JumpTableFunc: ");
dbg_hexa(JumpTableFunc);
dbg_printf("\n");
specificWramAddr = *(u32*)(JumpTableFunc + 0x10);
if (specificWramAddr < 0x37F8000 || specificWramAddr > 0x380FFFF) {
return 0;
return 0;
}
}

Expand Down

0 comments on commit 6913366

Please sign in to comment.