Skip to content

Commit 90507a1

Browse files
committed
Only reset system settings on region-changed JPN NANDs
1 parent f88eca3 commit 90507a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

arm9/source/main.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,11 @@ int main( int argc, char **argv) {
477477
fwrite(&newRegion, 1, 1, f_hwinfoS);
478478
fclose(f_hwinfoS);
479479
}
480-
// Reset system settings to work around touch inputs not working
481-
remove("sd:/shared1/TWLCFG0.dat");
482-
remove("sd:/shared1/TWLCFG1.dat");
480+
if (regionChar == 'J') {
481+
// Reset system settings to work around touch inputs not working
482+
remove("sd:/shared1/TWLCFG0.dat");
483+
remove("sd:/shared1/TWLCFG1.dat");
484+
}
483485
}
484486

485487
// Create dummy file

0 commit comments

Comments
 (0)