[DatFile] Include slotoptions as devices

This commit is contained in:
Matt Nadareski
2017-01-12 11:39:53 -08:00
parent e2f5fdc3fc
commit dc5f755150

View File

@@ -1374,8 +1374,17 @@ namespace SabreTools.Helper.Dats
{
machine.Devices.Add(device);
}
subreader.Read();
break;
case "slotoption":
string slotoption = subreader.GetAttribute("devname");
if (!machine.Devices.Contains(slotoption))
{
machine.Devices.Add(slotoption);
}
subreader.Read();
break;
case "publisher":
publisher = subreader.ReadElementContentAsString();