From 1858d24f9fd99908f5e34115dbdc362a0bb5ca76 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 20 Mar 2015 21:00:48 -0700 Subject: [PATCH] Clear and reset when switching games. --- pk3DS/Main.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pk3DS/Main.cs b/pk3DS/Main.cs index 0564411..fb85abc 100644 --- a/pk3DS/Main.cs +++ b/pk3DS/Main.cs @@ -175,7 +175,11 @@ private void openQuick(string path) GB_ExeFS.Enabled = (RomFS != null && ExeFS != null); B_MoveTutor.Enabled = oras; // Default false unless loaded if (RomFS != null) - { L_Game.Text = (oras) ? "Game Loaded: ORAS" : "Game Loaded: XY"; TB_Path.Text = path; } + { + if (L_Game.Text == "Game Loaded: ORAS" || L_Game.Text == "Game Loaded: XY") + { Directory.Delete("personal", true); } // Force reloading of personal data if the game is switched. + L_Game.Text = (oras) ? "Game Loaded: ORAS" : "Game Loaded: XY"; TB_Path.Text = path; + } else if (ExeFS != null) { L_Game.Text = "ExeFS loaded - no RomFS"; TB_Path.Text = path; } else @@ -184,6 +188,7 @@ private void openQuick(string path) if (RomFS != null) { // Trigger Data Loading + if (RTB_Status.Text.Length > 0) RTB_Status.Clear(); updateStatus("Data found! Loading persistent data for subforms...", false); changeLanguage(null, null); }