mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 05:46:47 -05:00
Clear and reset when switching games.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user