diff --git a/arm7/source/main.c b/arm7/source/main.c index 05500c7..65f8c58 100644 --- a/arm7/source/main.c +++ b/arm7/source/main.c @@ -141,6 +141,7 @@ int main() { sdmmc_nand_cid((u32*)0x2FFD7BC); // Get eMMC CID *(u32*)(0x2FFFD0C) = 0; } + *(u8*)(0x2FFFD08) = ((*(vu32*)(0x400481C) & BIT(3)) || !(*(vu32*)(0x400481C) & BIT(5))); // Set if there's no SD inserted resyncClock(); swiWaitForVBlank(); } diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index 8015240..d0358ed 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -200,7 +200,9 @@ int main(int argc, char **argv) { if (keysHeld() & KEY_Y) { yHeld = true; } - sdMounted = sdMount(); + if (*(u8*)(0x2FFFD08) == 0) { + sdMounted = sdMount(); + } ramdrive1Mount(); *(vu32*)(0x0DFFFE0C) = 0x474D3969; // Check for 32MB of RAM if (*(vu32*)(0x0DFFFE0C) == 0x474D3969) {