Lock scfg9 when switching to DS mode to avoid DSi mode being misdetected. Fixes #90.

This commit is contained in:
Gericom
2026-01-11 12:09:17 +01:00
parent 6a97b677a7
commit c62945af58

View File

@@ -100,8 +100,8 @@ static void bootArm9()
if (((REG_SCFG_EXT >> 14) & 3) == 0) if (((REG_SCFG_EXT >> 14) & 3) == 0)
{ {
// When switched to DS mode, disable vram extensions // When switched to DS mode, disable vram extensions and lock scfg9
REG_SCFG_EXT &= ~(1 << 13); REG_SCFG_EXT &= ~((1 << 13) | (1 << 31));
} }
while (gfx_getVCount() != 191); while (gfx_getVCount() != 191);