Skip to content

Commit

Permalink
Try again to enable IR for games that use it
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jul 24, 2021
1 parent 6b0e421 commit 46ee6ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions retail/bootloaderi/source/arm7/main.arm7.c
Expand Up @@ -41,6 +41,7 @@
#include <nds/ndstypes.h>
#include <nds/arm7/codec.h>
#include <nds/dma.h>
#include <nds/card.h>
#include <nds/system.h>
#include <nds/bios.h>
#include <nds/input.h>
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 46ee6ce

Please sign in to comment.