Small fix for duplicate languages sometimes showing up in the combobox for XCI files

This commit is contained in:
StudentBlake 2018-09-01 00:50:10 -04:00
parent b5a4d41dd2
commit 55d9c0c8a9

View file

@ -623,7 +623,7 @@ namespace XCI_Explorer {
for (int i = 0; i < NACP.NACP_Strings.Length; i++) { for (int i = 0; i < NACP.NACP_Strings.Length; i++) {
NACP.NACP_Strings[i] = new NACP.NACP_String(source.Skip(i * 0x300).Take(0x300).ToArray()); NACP.NACP_Strings[i] = new NACP.NACP_String(source.Skip(i * 0x300).Take(0x300).ToArray());
if (NACP.NACP_Strings[i].Check != 0) { if (NACP.NACP_Strings[i].Check != 0 && !CB_RegionName.Items.Contains(Language[i])) {
CB_RegionName.Items.Add(Language[i]); CB_RegionName.Items.Add(Language[i]);
string icon_filename = "data\\icon_" + Language[i].Replace(" ", "") + ".dat"; string icon_filename = "data\\icon_" + Language[i].Replace(" ", "") + ".dat";
if (File.Exists(icon_filename)) { if (File.Exists(icon_filename)) {