mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Shouldn't have to expicitly define an empty dictionary for parse.
Addendum to this fix is adding a Nodump output for HashSplit
This commit is contained in:
@@ -100,6 +100,12 @@ namespace SabreTools.Helper
|
||||
/// <returns>DatData object representing the read-in data</returns>
|
||||
public static DatData Parse(string filename, int sysid, int srcid, DatData datdata, Logger logger, bool keep = false)
|
||||
{
|
||||
// Make sure there's a dictionary to read to
|
||||
if (datdata.Roms == null)
|
||||
{
|
||||
datdata.Roms = new Dictionary<string, List<RomData>>();
|
||||
}
|
||||
|
||||
// Prepare all internal variables
|
||||
XmlReader subreader, headreader, flagreader;
|
||||
bool superdat = false, nodump = false, empty = true;
|
||||
|
||||
Reference in New Issue
Block a user