Create a more extensible system for DAT creation for future additions

This commit is contained in:
Matt Nadareski
2016-05-15 14:34:06 -07:00
parent d753b796fe
commit ff48cddc9a
6 changed files with 211 additions and 42 deletions

View File

@@ -225,7 +225,18 @@ namespace SabreTools
}
// Then write out the file
Output.WriteToDatFromDict(name, description, "", date, "SabreTools", "SabreTools", false, _old, true, _outroot, roms, _logger, _norename);
DatData datdata = new DatData
{
Name = name,
Description = description,
Version = "",
Date = date,
Category = "SabreTools",
Author = "SabreTools",
ForcePacking = ForcePacking.None,
OutputFormat = (_old ? OutputFormat.ClrMamePro : OutputFormat.Xml),
};
Output.WriteToDatFromDict(datdata, true, _outroot, roms, _logger, _norename);
return true;
}