From fb01e69593319dc5b80f0907963114a32238f2bb Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sun, 22 Oct 2023 16:19:03 -0600 Subject: [PATCH] Update main.c --- romsel_dsimenutheme/arm7/source/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/romsel_dsimenutheme/arm7/source/main.c b/romsel_dsimenutheme/arm7/source/main.c index d7c8af8afa..d056c6f668 100644 --- a/romsel_dsimenutheme/arm7/source/main.c +++ b/romsel_dsimenutheme/arm7/source/main.c @@ -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) @@ -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;