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:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user