mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Listxml] Fix parsing
This commit is contained in:
@@ -60,7 +60,7 @@ namespace SabreTools.Library.DatFiles
|
||||
// All XML-derived DATs share a lot in common so it just calls one implementation
|
||||
// TODO: Use the following implementation instead of passing to Logiqx
|
||||
new Logiqx(this, false).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
||||
return;
|
||||
return;
|
||||
|
||||
// Prepare all internal variables
|
||||
Encoding enc = Utilities.GetEncoding(filename);
|
||||
@@ -128,6 +128,7 @@ namespace SabreTools.Library.DatFiles
|
||||
/// <summary>
|
||||
/// Read machine information
|
||||
/// </summary>
|
||||
/// <param name="reader">XmlReader representing a machine block</param>
|
||||
/// <param name="filename">Name of the file to be parsed</param>
|
||||
/// <param name="sysid">System ID for the DAT</param>
|
||||
/// <param name="srcid">Source ID for the DAT</param>
|
||||
@@ -187,6 +188,7 @@ namespace SabreTools.Library.DatFiles
|
||||
CloneOf = reader.GetAttribute("cloneof") ?? "",
|
||||
RomOf = reader.GetAttribute("romof") ?? "",
|
||||
SampleOf = reader.GetAttribute("sampleof") ?? "",
|
||||
Devices = new List<string>(),
|
||||
|
||||
MachineType = (machineType == MachineType.NULL ? MachineType.None : machineType),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user