Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Oct 22, 2023
1 parent 9fd16cf commit fb01e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions romsel_dsimenutheme/arm7/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ int main() {
*(vu32*)0x037C0000 = wordBak;
}

u8 pmBacklight = readPowerManagement(PM_BACKLIGHT_LEVEL);

// 01: Fade Out
// 02: Return
// 03: status (Bit 0: isDSLite, Bit 1: scfgEnabled, Bit 2: REG_SNDEXTCNT)
Expand All @@ -166,6 +164,8 @@ int main() {
fifoSendValue32(FIFO_USER_03, status);

if (REG_SNDEXTCNT == 0) {
u8 pmBacklight = readPowerManagement(PM_BACKLIGHT_LEVEL);

if (pmBacklight & 0xF0) { // DS Lite
int backlightLevel = pmBacklight & 3; // Brightness
*(int*)0x02003000 = backlightLevel;
Expand Down

0 comments on commit fb01e69

Please sign in to comment.