From 50b41435f4d0c15bb39c39c96ab0e4103a5f144d Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 17 Feb 2020 01:02:12 -0700 Subject: [PATCH] DSi/3DS: Now runs without an SD card --- arm7/source/main.c | 1 + arm9/source/main.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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) {