From f88eca33be450ffd5ab7c5fb6d6aef64885be636 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sat, 30 Mar 2024 11:45:43 -0600 Subject: [PATCH] Reset system settings when changing region --- arm9/source/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index 78db877..5f27b34 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -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') { @@ -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