From 90507a1bee0c97bf8d2afadc98271e674f9b2f09 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sat, 30 Mar 2024 21:24:18 -0600 Subject: [PATCH] Only reset system settings on region-changed JPN NANDs --- arm9/source/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index 5f27b34..0de17d2 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -477,9 +477,11 @@ int main( int argc, char **argv) { fwrite(&newRegion, 1, 1, f_hwinfoS); fclose(f_hwinfoS); } - // Reset system settings to work around touch inputs not working - remove("sd:/shared1/TWLCFG0.dat"); - remove("sd:/shared1/TWLCFG1.dat"); + if (regionChar == 'J') { + // Reset system settings to work around touch inputs not working + remove("sd:/shared1/TWLCFG0.dat"); + remove("sd:/shared1/TWLCFG1.dat"); + } } // Create dummy file