Skip to content

Commit

Permalink
Flash the screen when starting last-run ROM by holding B button
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Feb 24, 2025
1 parent 55a1700 commit b2e15cb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions title/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,22 @@ int titleMode(void)
}

scanKeys();
if (keysHeld() & KEY_B) {
// Indicate that the B button was held
if (!ms().macroMode) {
powerOff(PM_BACKLIGHT_TOP);
}
powerOff(PM_BACKLIGHT_BOTTOM);

for (int i = 0; i < 5; i++) {
swiWaitForVBlank();
}

if (!ms().macroMode) {
powerOn(PM_BACKLIGHT_TOP);
}
powerOn(PM_BACKLIGHT_BOTTOM);
}

autoRunBit = (*(u32*)0x02000000 & BIT(3));
runTempDSiWare = (*(u32*)0x02000000 & BIT(4));
Expand Down

0 comments on commit b2e15cb

Please sign in to comment.