Skip to content

Commit f88eca3

Browse files
committed
Reset system settings when changing region
1 parent 6429b35 commit f88eca3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arm9/source/main.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ int main( int argc, char **argv) {
363363
iprintf("\n");
364364
if ((cursorPosition == 0) && (optionCount > 2)) {
365365
iprintf(" Change the SDNAND region.\n");
366+
iprintf(" System settings will be reset.\n");
366367
iprintf(" \n");
367368
iprintf(" Original region: ");
368369
if (regionChar == 'J') {
@@ -476,6 +477,9 @@ int main( int argc, char **argv) {
476477
fwrite(&newRegion, 1, 1, f_hwinfoS);
477478
fclose(f_hwinfoS);
478479
}
480+
// Reset system settings to work around touch inputs not working
481+
remove("sd:/shared1/TWLCFG0.dat");
482+
remove("sd:/shared1/TWLCFG1.dat");
479483
}
480484

481485
// Create dummy file

0 commit comments

Comments
 (0)