From 46ee6ceaf36a91d932534c5d4243613c8471ddcc Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sat, 24 Jul 2021 00:24:07 -0600 Subject: [PATCH] Try again to enable IR for games that use it --- retail/bootloaderi/source/arm7/main.arm7.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/retail/bootloaderi/source/arm7/main.arm7.c b/retail/bootloaderi/source/arm7/main.arm7.c index a16e23b80..f8de4ea88 100644 --- a/retail/bootloaderi/source/arm7/main.arm7.c +++ b/retail/bootloaderi/source/arm7/main.arm7.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -254,6 +255,7 @@ void my_enableSlot1() { REG_SCFG_MC = (REG_SCFG_MC & ~0x0c) | 8; swiDelay(10 * BASE_DELAY); } + REG_ROMCTRL = 0x20000000; // set ROMCTRL=20000000h } void my_disableSlot1() { @@ -1361,8 +1363,7 @@ int arm7_main(void) { }*/ if (!gameOnFlashcard && REG_SCFG_EXT != 0 && !(REG_SCFG_MC & BIT(0))) { - //if (strncmp(getRomTid(ndsHeader), "I", 1) == 0) { - if (strncmp(romTid, "IPK", 3) == 0 || strncmp(romTid, "IPG", 3) == 0) { // Pokemon HGSS + if (strncmp(getRomTid(ndsHeader), "I", 1) == 0) { // Enable Slot-1 for games that use IR my_enableSlot1(); } else {