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:
Matt Nadareski
2016-05-21 00:45:56 -07:00
parent 926db51830
commit 235d43dc8b
10 changed files with 55 additions and 44 deletions

View File

@@ -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;