Skip to content

Commit ad4f01d

Browse files
committed
Fix non-preloadable DS ROMs not booting outside of B4DS mode
1 parent 3b06db1 commit ad4f01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

retail/bootloaderi/source/arm7/hook_arm9.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ int hookNdsRetailArm9(
383383
ce9->valueBits |= b_resetOnEveryException;
384384
}
385385

386-
if (ndsHeader->unitCode == 0 || !dsiMode) {
386+
if (!gameOnFlashcard && (ndsHeader->unitCode == 0 || !dsiMode)) {
387387
u32* cacheAddressTable = (u32*)(!laterSdk ? CACHE_ADDRESS_TABLE_LOCATION2 : CACHE_ADDRESS_TABLE_LOCATION);
388388
u32 addr = ce9->cacheAddress;
389389

0 commit comments

Comments
 (0)