Skip to content

Commit c9cdd49

Browse files
committed
bug fix
1 parent c01ca4b commit c9cdd49

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

rungame/arm7/source/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ void VblankHandler(void) {
5353
} else if(fifoGetValue32(FIFO_USER_07) == 1) {
5454
*(u16*)(0x4004700) = 0x800F;
5555
}
56+
if(fifoCheckValue32(FIFO_USER_08)) {
57+
ReturntoDSiMenu();
58+
}
5659
}
5760

5861
//---------------------------------------------------------------------------------

rungame/arm9/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ int lastRanROM() {
131131
if (!access(dsiWarePrvPath.c_str(), F_OK) && access("sd:/bootthis.prv", F_OK))
132132
rename (dsiWarePrvPath.c_str(), "sd:/bootthis.prv");
133133

134-
fifoSendValue32(FIFO_USER_07, 1); // Reboot
134+
fifoSendValue32(FIFO_USER_08, 1); // Reboot
135135
} else if (launchType == 3) {
136136
argarray.at(0) = "sd:/_nds/dsimenuplusplus/emulators/nestwl.nds";
137137
return runNdsFile ("sd:/_nds/dsimenuplusplus/emulators/nestwl.nds", argarray.size(), (const char **)&argarray[0], true); // Pass ROM to nesDS as argument

0 commit comments

Comments
 (0)