Minor cleanup

extrabytes setting moved to another method, fixes all resharper problems
This commit is contained in:
Kurt 2017-01-22 23:05:54 -08:00
parent ddac932419
commit bcb5f5f2bb

View File

@ -262,7 +262,8 @@ private void loadConfig(out bool BAKprompt, out bool showChangelog, out int lang
string l = Settings.Language;
int lang = Array.IndexOf(GameInfo.lang_val, l);
if (lang < 0) Array.IndexOf(GameInfo.lang_val, "en");
languageID = lang < 0 ? 1 : lang;
if (lang > -1)
languageID = lang;
// Version Check
if (Settings.Version.Length > 0) // already run on system
@ -1026,7 +1027,6 @@ private void openSAV(SaveFile sav, string path)
// Generational Interface
byte[] extraBytes = new byte[1];
Tip1.RemoveAll(); Tip2.RemoveAll(); Tip3.RemoveAll(); // TSV/PSV
FLP_Country.Visible = FLP_SubRegion.Visible = FLP_3DSRegion.Visible = SAV.Generation >= 6;