[SDatFile] Make sure we wipe out the information for each level of the softlist as we go so there's no conflicts

This commit is contained in:
Matt Nadareski
2016-10-03 00:21:03 -07:00
parent c96c36e990
commit 0a004b4ab1

View File

@@ -2388,6 +2388,18 @@ namespace SabreTools.Helper
// We only want elements
if (subreader.NodeType != XmlNodeType.Element)
{
if (subreader.NodeType == XmlNodeType.EndElement && subreader.Name == "part")
{
partname = "";
partinterface = "";
features = new Dictionary<string, string>();
}
if (subreader.NodeType == XmlNodeType.EndElement && (subreader.Name == "dataarea" || subreader.Name == "diskarea"))
{
areaname = "";
areasize = null;
}
subreader.Read();
continue;
}
@@ -5172,7 +5184,7 @@ namespace SabreTools.Helper
foreach (KeyValuePair<string, string> kvp in rom.Features)
{
state += "\t\t\t<feature name=\"" + kvp.Key + "\" value=\"" + kvp.Value + "\" />\n";
state += "\t\t\t<feature name=\"" + kvp.Key + "\" value=\"" + kvp.Value + "\"/>\n";
}
switch (rom.Type)