mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Fix CMP date tag parsing
This commit is contained in:
@@ -707,11 +707,19 @@ namespace SabreTools.Helper.Dats
|
||||
break;
|
||||
case "date":
|
||||
if (item.Type == ItemType.Rom)
|
||||
{
|
||||
// If we have quotes in the next item, assume only one item
|
||||
if (gc[i + 1].Contains("\""))
|
||||
{
|
||||
quoteless = gc[++i].Replace("\"", "");
|
||||
}
|
||||
// Otherwise, we assume we need to read the next two items
|
||||
else
|
||||
{
|
||||
quoteless = gc[++i].Replace("\"", "") + " " + gc[++i].Replace("\"", "");
|
||||
}
|
||||
((Rom)item).Date = quoteless;
|
||||
}
|
||||
i++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user