diff --git a/J-Runner/Functions/parse_ini.cs b/J-Runner/Functions/parse_ini.cs index 6edcc70..0575c23 100644 --- a/J-Runner/Functions/parse_ini.cs +++ b/J-Runner/Functions/parse_ini.cs @@ -224,10 +224,18 @@ public static void getLabelsandCBs(string filename, ref List labels, ref { cbs.Add(temp.Substring(temp.IndexOf("cb_") + 3, temp.IndexOf(".bin") - 3)); } + else if (temp.Contains("cb.")) + { + cbs.Add(temp.Substring(temp.IndexOf("cb.") + 3, temp.IndexOf(".bin") - 3)); + } else if (temp.Contains("cbb_")) { cbs.Add(temp.Substring(temp.IndexOf("cbb_") + 4, temp.IndexOf(".bin") - 4)); } + else if (temp.Contains("cbb.")) + { + cbs.Add(temp.Substring(temp.IndexOf("cbb.") + 4, temp.IndexOf(".bin") - 4)); + } } } } diff --git a/J-Runner/Panels/XeBuildPanel.cs b/J-Runner/Panels/XeBuildPanel.cs index de9bd34..48ed2e0 100644 --- a/J-Runner/Panels/XeBuildPanel.cs +++ b/J-Runner/Panels/XeBuildPanel.cs @@ -1620,12 +1620,16 @@ public void setComboCB(bool erase = false, bool wait = false) List cbs = new List(); parse_ini.getLabelsandCBs(ini, ref labels, ref cbs); string defaultCB = null; + foreach (string s in labels) { if (!s.Contains("bl")) continue; if (variables.ctype.ID == -1) { - if (s.Contains("_")) cbList.Add(new CB(s.Substring(s.IndexOf("_") + 1), true)); + if (s.Contains("_")) + { + cbList.Add(new CB(s.Substring(s.IndexOf("_") + 1), true)); + } else { string cb = cbs[labels.IndexOf(s)]; @@ -1637,7 +1641,10 @@ public void setComboCB(bool erase = false, bool wait = false) { if (s.Contains(variables.ctype.Ini)) { - if (s.Contains("_")) cbList.Add(new CB(s.Substring(s.IndexOf("_") + 1), true)); + if (s.Contains("_")) + { + cbList.Add(new CB(s.Substring(s.IndexOf("_") + 1), true)); + } else { string cb = cbs[labels.IndexOf(s)]; @@ -1648,7 +1655,7 @@ public void setComboCB(bool erase = false, bool wait = false) } } - cbList.Sort((a, b) => Convert.ToInt32(a.Version) - Convert.ToInt32(b.Version)); + //cbList.Sort((a, b) => Convert.ToInt32(a.Version) - Convert.ToInt32(b.Version)); int defaultIndex = 0; // Fallback foreach (CB cb in cbList) diff --git a/J-Runner/Resources/Build.txt b/J-Runner/Resources/Build.txt index 9f8be7c..f8ac990 100644 --- a/J-Runner/Resources/Build.txt +++ b/J-Runner/Resources/Build.txt @@ -1 +1 @@ -01-09-2023 18:56:27 \ No newline at end of file +01-12-2023 21:29:31 \ No newline at end of file