diff --git a/SabreTools.Helper/Objects/Dat/DatFile.cs b/SabreTools.Helper/Objects/Dat/DatFile.cs index ea769342..42bc16b7 100644 --- a/SabreTools.Helper/Objects/Dat/DatFile.cs +++ b/SabreTools.Helper/Objects/Dat/DatFile.cs @@ -2327,8 +2327,8 @@ namespace SabreTools.Helper partname = "", partinterface = "", areaname = ""; bool? supported = null; long? areasize = null; - Dictionary infos = new Dictionary(); - Dictionary features = new Dictionary(); + List> infos = new List>(); + List> features = new List>(); // We want to process the entire subtree of the game subreader = xtr.ReadSubtree(); @@ -2392,7 +2392,7 @@ namespace SabreTools.Helper { partname = ""; partinterface = ""; - features = new Dictionary(); + features = new List>(); } if (subreader.NodeType == XmlNodeType.EndElement && (subreader.Name == "dataarea" || subreader.Name == "diskarea")) { @@ -2437,7 +2437,7 @@ namespace SabreTools.Helper publisher = subreader.ReadElementContentAsString(); break; case "info": - infos.Add(subreader.GetAttribute("name"), subreader.GetAttribute("value")); + infos.Add(Tuple.Create(subreader.GetAttribute("name"), subreader.GetAttribute("value"))); subreader.Read(); break; case "part": @@ -2446,7 +2446,7 @@ namespace SabreTools.Helper subreader.Read(); break; case "feature": - features.Add(subreader.GetAttribute("name"), subreader.GetAttribute("value")); + features.Add(Tuple.Create(subreader.GetAttribute("name"), subreader.GetAttribute("value"))); subreader.Read(); break; case "dataarea": @@ -4635,9 +4635,9 @@ namespace SabreTools.Helper + (rom.Year != null ? "\t\t" + HttpUtility.HtmlEncode(rom.Year) + "\n" : "") + (rom.Publisher != null ? "\t\t" + HttpUtility.HtmlEncode(rom.Publisher) + "\n" : ""); - foreach (KeyValuePair kvp in rom.Infos) + foreach (Tuple kvp in rom.Infos) { - state += "\t\t\n"; + state += "\t\t\n"; } break; } @@ -5182,9 +5182,9 @@ namespace SabreTools.Helper case OutputFormat.SoftwareList: state += "\t\t\n"; - foreach (KeyValuePair kvp in rom.Features) + foreach (Tuple kvp in rom.Features) { - state += "\t\t\t\n"; + state += "\t\t\t\n"; } switch (rom.Type) diff --git a/SabreTools.Helper/Objects/Dat/DatItem.cs b/SabreTools.Helper/Objects/Dat/DatItem.cs index 41c16138..fd892239 100644 --- a/SabreTools.Helper/Objects/Dat/DatItem.cs +++ b/SabreTools.Helper/Objects/Dat/DatItem.cs @@ -31,10 +31,10 @@ namespace SabreTools.Helper // Software list information protected bool? _supported; protected string _publisher; - protected Dictionary _infos; + protected List> _infos; protected string _partName; protected string _partInterface; - protected Dictionary _features; + protected List> _features; protected string _areaName; protected long? _areaSize; @@ -138,7 +138,7 @@ namespace SabreTools.Helper get { return _publisher; } set { _publisher = value; } } - public Dictionary Infos + public List> Infos { get { return _infos; } set { _infos = value; } @@ -153,7 +153,7 @@ namespace SabreTools.Helper get { return _partInterface; } set { _partInterface = value; } } - public Dictionary Features + public List> Features { get { return _features; } set { _features = value; }