Skip to content

Commit d8987b9

Browse files
committed
Update patch_arm9.c
1 parent 54df829 commit d8987b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

retail/cardenginei/arm7/source/patcher/patch_arm9.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static bool patchCardRead(cardengineArm9* ce9, const tNDSHeader* ndsHeader, cons
141141

142142
// Patch
143143
u32* cardReadPatch = (usesThumb ? ce9->thumbPatches->card_read_arm9 : ce9->patches->card_read_arm9);
144-
tonccpy(cardReadStartOffset, cardReadPatch, usesThumb ? ((moduleParams->sdk_version > 0x5000000) ? 0xB0 : 0xA0) : 0xE0); // 0xE0 = 0xF0 - 0x08
144+
tonccpy(cardReadStartOffset, cardReadPatch, usesThumb ? 0xC : 8);
145145
/* dbg_printf("cardRead location : ");
146146
dbg_hexa((u32)cardReadStartOffset);
147147
dbg_printf("\n");

0 commit comments

Comments
 (0)