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

@@ -1342,7 +1342,6 @@ Make a selection:
DatData datdata = new DatData
{
OutputFormat = outputFormat,
Roms = new Dictionary<string, List<RomData>>(),
MergeRoms = false,
};
datdata = RomManipulation.Parse(filename, 0, 0, datdata, logger, true);
@@ -1372,7 +1371,6 @@ Make a selection:
DatData datdata = new DatData
{
OutputFormat = outputFormat,
Roms = new Dictionary<string, List<RomData>>(),
MergeRoms = false,
};
datdata = RomManipulation.Parse(file, 0, 0, datdata, logger, true);
@@ -1429,7 +1427,6 @@ Make a selection:
logger.User("Converting " + input);
DatData datdata = new DatData
{
Roms = new Dictionary<string, List<RomData>>(),
OutputFormat = OutputFormat.MissFile,
UseGame = usegame,

View File

@@ -56,13 +56,8 @@ namespace SabreTools
Directory.CreateDirectory(_outdir);
}
// Create the initial DatData object
DatData datdata = new DatData
{
Roms = new Dictionary<string, List<RomData>>(),
};
// Load the current DAT to be processed
DatData datdata = new DatData();
datdata = RomManipulation.Parse(_filename, 0, 0, datdata, _logger);
// Set all of the appropriate outputs for each of the subsets

View File

@@ -399,10 +399,7 @@ namespace SabreTools
}
// Get all roms that are found in the DAT to see what needs to be added
DatData datdata = new DatData
{
Roms = new Dictionary<string, List<RomData>>(),
};
DatData datdata = new DatData();
datdata = RomManipulation.Parse(_filepath, sysid, srcid, datdata, _logger);
// Sort inputted roms into games

View File

@@ -117,7 +117,6 @@ namespace SabreTools
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
OutputFormat = (_old ? OutputFormat.ClrMamePro : OutputFormat.Xml),
MergeRoms = _dedup,
Roms = new Dictionary<string, List<RomData>>(),
Type = (_superdat ? "SuperDAT" : ""),
};
foreach (string input in _inputs)
@@ -145,7 +144,6 @@ namespace SabreTools
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
OutputFormat = (_old ? OutputFormat.ClrMamePro : OutputFormat.Xml),
MergeRoms = _dedup,
Roms = new Dictionary<string, List<RomData>>(),
};
foreach (string key in userData.Roms.Keys)
{
@@ -189,7 +187,6 @@ namespace SabreTools
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
OutputFormat = (_old ? OutputFormat.ClrMamePro : OutputFormat.Xml),
MergeRoms = _dedup,
Roms = new Dictionary<string, List<RomData>>(),
};
foreach (string key in outerDiffData.Roms.Keys)
@@ -228,7 +225,6 @@ namespace SabreTools
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
OutputFormat = (_old ? OutputFormat.ClrMamePro : OutputFormat.Xml),
MergeRoms = _dedup,
Roms = new Dictionary<string, List<RomData>>(),
};
foreach (string key in userData.Roms.Keys)
{
@@ -273,7 +269,6 @@ namespace SabreTools
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
OutputFormat = (_old ? OutputFormat.ClrMamePro : OutputFormat.Xml),
MergeRoms = _dedup,
Roms = new Dictionary<string, List<RomData>>(),
};
List<string> keys = userData.Roms.Keys.ToList();

View File

@@ -85,7 +85,6 @@ namespace SabreTools
{
DatData datdata = new DatData
{
Roms = new Dictionary<string, List<RomData>>(),
ForcePacking = (_forceunpack ? ForcePacking.Unzip : ForcePacking.None),
OutputFormat = RomManipulation.GetOutputFormat(filename),
};