mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Output] XML is default output further down the line
This commit is contained in:
@@ -25,6 +25,12 @@ namespace SabreTools.Helper
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
public static bool WriteDatfile(Dat datdata, string outDir, Logger logger, bool norename = true, bool stats = false)
|
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
|
// Output initial statistics, for kicks
|
||||||
if (stats)
|
if (stats)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -350,10 +350,6 @@ namespace SabreTools
|
|||||||
}
|
}
|
||||||
if (!outputCMP && !(outputMiss || tsv != null) && !outputRC && !outputSD && !outputXML)
|
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,
|
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);
|
gamename, romname, romtype, sgt, slt, seq, crc, md5, sha1, nodump, trim, single, root, _logger);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user