From 614a8fa74420dd347e0ded300a6f80628204da52 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Thu, 23 May 2024 14:01:32 -0600 Subject: [PATCH] Disable SD prompt after first TWLMenu++ boot on DSi --- booter/arm7/source/main.c | 2 ++ booter/arm9/source/main.cpp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/booter/arm7/source/main.c b/booter/arm7/source/main.c index 60b880c5b5..9bd50b4b76 100644 --- a/booter/arm7/source/main.c +++ b/booter/arm7/source/main.c @@ -109,6 +109,8 @@ int main() { setPowerButtonCB(powerButtonCB); + *(u8*)0x0280FFFF = i2cReadRegister(0x4A, 0x71); + // Keep the ARM7 mostly idle while (!exitflag) { if ((REG_KEYINPUT & (KEY_SELECT | KEY_START | KEY_L | KEY_R)) == 0) { diff --git a/booter/arm9/source/main.cpp b/booter/arm9/source/main.cpp index 32f541efe6..388c9e9add 100644 --- a/booter/arm9/source/main.cpp +++ b/booter/arm9/source/main.cpp @@ -202,10 +202,10 @@ int main(int argc, char **argv) { extern const DISC_INTERFACE __my_io_dsisd; const bool fatInited = fatMountSimple("sd", &__my_io_dsisd); - *(u32*)0x0CFFFD0C = 0x47444943; // 'CIDG' - while (*(u32*)0x0CFFFD0C != 0) { swiDelay(100); } + if (*(u8*)0x0280FFFF != 0x01) { + *(u32*)0x0CFFFD0C = 0x47444943; // 'CIDG' + while (*(u32*)0x0CFFFD0C != 0) { swiDelay(100); } - { DC_FlushRange((void*)0x02810000, 16); const u16 manufID = *(u16*)0x0281000E;