Skip to content

Commit

Permalink
Reset system settings when changing region
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Mar 30, 2024
1 parent 6429b35 commit f88eca3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ int main( int argc, char **argv) {
iprintf("\n");
if ((cursorPosition == 0) && (optionCount > 2)) {
iprintf(" Change the SDNAND region.\n");
iprintf(" System settings will be reset.\n");
iprintf(" \n");
iprintf(" Original region: ");
if (regionChar == 'J') {
Expand Down Expand Up @@ -476,6 +477,9 @@ 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");
}

// Create dummy file
Expand Down

0 comments on commit f88eca3

Please sign in to comment.