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:
@@ -708,10 +708,18 @@ namespace SabreTools.Helper.Dats
|
|||||||
case "date":
|
case "date":
|
||||||
if (item.Type == ItemType.Rom)
|
if (item.Type == ItemType.Rom)
|
||||||
{
|
{
|
||||||
quoteless = gc[++i].Replace("\"", "") + " " + gc[++i].Replace("\"", "");
|
// 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;
|
((Rom)item).Date = quoteless;
|
||||||
}
|
}
|
||||||
i++;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user