[Output] XML is default output further down the line

This commit is contained in:
Matt Nadareski
2016-08-31 20:55:41 -07:00
parent ef9efd691a
commit 81189ff640
2 changed files with 6 additions and 4 deletions

View File

@@ -25,6 +25,12 @@ namespace SabreTools.Helper
/// </remarks>
public static bool WriteDatfile(Dat datdata, string outDir, Logger logger, bool norename = true, bool stats = false)
{
// If the DAT has no output format, default to XML
if (datdata.OutputFormat == OutputFormat.None)
{
datdata.OutputFormat = OutputFormat.Xml;
}
// Output initial statistics, for kicks
if (stats)
{

View File

@@ -350,10 +350,6 @@ namespace SabreTools
}
if (!outputCMP && !(outputMiss || tsv != null) && !outputRC && !outputSD && !outputXML)
{
if (merge || diff != 0)
{
userInputDat.OutputFormat = OutputFormat.Xml;
}
DatTools.Update(inputs, userInputDat, outdir, merge, diff, cascade, inplace, skip, bare, clean, softlist,
gamename, romname, romtype, sgt, slt, seq, crc, md5, sha1, nodump, trim, single, root, _logger);
}