From 5f3e13abc0823c1adcdac0702e9c873eced8d80a Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 21 Apr 2015 07:39:58 -0700 Subject: [PATCH] Wait for 0 threads on language switch Updated credits too --- pk3DS/Main.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pk3DS/Main.cs b/pk3DS/Main.cs index a7f3a0e..6e76465 100644 --- a/pk3DS/Main.cs +++ b/pk3DS/Main.cs @@ -87,10 +87,9 @@ private void L_About_Click(object sender, EventArgs e) "Wild Editor (**WE): SciresM & Kaphotics" + Environment.NewLine + "Trainer Editor (**TE): SciresM, Kaphotics, and KazoWAR" + Environment.NewLine + "Personal Editor: SciresM" + Environment.NewLine + - "Mega Evolution Editor (MEE): Huntereb & SciresM", - - "After integrating standalone tools, the following editors were implemented:" + Environment.NewLine + - "Evolutions, Moves, Items, Maison, and ExeFS Editors: Kaphotics", + "Mega Evolution Editor (MEE): SciresM" + Environment.NewLine + + "Evolutions, Moves, Items, Maison Editors: Kaphotics", + "ExeFS Editors: Kaphotics (thanks Drayano and magical!)", "Big thanks to the ProjectPokemon community!" ); @@ -113,6 +112,8 @@ private void changeLanguage(object sender, EventArgs e) if (!GB_RomFS.Enabled) return; new Thread(() => { + // Let all other operations finish first (ie, if the user quickly switches languages on load) + while (threads > 0) Thread.Sleep(50); // Gather the Text Language Strings updateStatus(String.Format("GARC Get: {0} @ {1}... ", "gametext", getGARCFileName("gametext"))); threadGet(RomFS + getGARCFileName("gametext"), "gametext", true, true);