diff --git a/retail/arm9/source/conf_sd.cpp b/retail/arm9/source/conf_sd.cpp index b551f0395..c7408b63f 100644 --- a/retail/arm9/source/conf_sd.cpp +++ b/retail/arm9/source/conf_sd.cpp @@ -836,9 +836,13 @@ int loadFromSD(configuration* conf, const char *bootstrapPath) { newRegion = conf->region; } - bool displayEsrb = (newRegion == 1 && memcmp(romTid, "UBR", 3) != 0 && memcmp(romTid, "HND", 3) != 0 && memcmp(romTid, "HNE", 3) != 0); + const bool displayEsrb = (newRegion == 1 && memcmp(romTid, "UBR", 3) != 0 && memcmp(romTid, "HND", 3) != 0 && memcmp(romTid, "HNE", 3) != 0); if (dsiFeatures() && !conf->b4dsMode) { + if (!isDSiMode()) { + toncset((u32*)0x02400000, 0, 0x2B8000); // Clear leftover garbage data + } + dsiEnhancedMbk = (isDSiMode() && *(u32*)0x02FFE1A0 == 0x00403000 && ((REG_SCFG_EXT7 == 0) || (strncmp((const char*)0x04FFFA00, "no$gba", 6) == 0))); // Load donor ROM's arm7 binary, if needed