mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Logiqx read, software list write fixes
This commit is contained in:
@@ -3583,7 +3583,12 @@ namespace SabreTools.Helper
|
||||
// Contains an equal sign, even number of quotes, not in attribute
|
||||
else if (gc[i].Contains("=") && Regex.Matches(gc[i], "\"").Count % 2 == 0 && attrib == "")
|
||||
{
|
||||
attribs.Add(gc[i].Split('=')[0], gc[i].Split('=')[1].Replace("\"", ""));
|
||||
string[] split = gc[i].Split('=');
|
||||
attrib = split[0];
|
||||
val = gc[i].Substring(split[0].Length + 1).Replace("\"", "");
|
||||
attribs.Add(attrib, val);
|
||||
attrib = "";
|
||||
val = "";
|
||||
}
|
||||
|
||||
// Contains an equal sign, even number of quotes, in attribute
|
||||
@@ -3595,8 +3600,9 @@ namespace SabreTools.Helper
|
||||
// Contains an equal sign, odd number of quotes, not in attribute
|
||||
else if (gc[i].Contains("=") && Regex.Matches(gc[i], "\"").Count % 2 == 1 && attrib == "")
|
||||
{
|
||||
attrib = gc[i].Split('=')[0];
|
||||
val = gc[i].Split('=')[1].Replace("\"", "");
|
||||
string[] split = gc[i].Split('=');
|
||||
attrib = split[0];
|
||||
val = gc[i].Substring(split[0].Length + 1).Replace("\"", "");
|
||||
}
|
||||
|
||||
// Contains no equal sign, even number of quotes, not in attribute
|
||||
|
||||
Reference in New Issue
Block a user