mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Lock scfg9 when switching to DS mode to avoid DSi mode being misdetected. Fixes #90.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user