Fix new SL DATs again

This commit is contained in:
Matt Nadareski
2016-05-27 10:47:41 -07:00
parent fd88d7c217
commit a8686d0b7b

View File

@@ -192,6 +192,17 @@ namespace SabreTools.Helper
switch (xtr.Name)
{
// New software lists have this behavior
case "softwarelist":
if (xtr.GetAttribute("name") != null)
{
datdata.Name = (String.IsNullOrEmpty(datdata.Name) ? xtr.GetAttribute("name") : datdata.Name);
}
if (xtr.GetAttribute("description") != null)
{
datdata.Description = (String.IsNullOrEmpty(datdata.Description) ? xtr.GetAttribute("description") : datdata.Description);
}
break;
case "header":
// We want to process the entire subtree of the header
headreader = xtr.ReadSubtree();