DSi/3DS: Now runs without an SD card

This commit is contained in:
RocketRobz 2020-02-17 01:02:12 -07:00
parent 61b426347b
commit 50b41435f4
2 changed files with 4 additions and 1 deletions

View File

@ -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();
}

View File

@ -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) {