mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Output only if there's something worth outputting
This commit is contained in:
@@ -280,9 +280,18 @@ namespace SabreTools
|
|||||||
// Now, output all of the files to the output directory
|
// Now, output all of the files to the output directory
|
||||||
_logger.User("DAT information created, outputting new files");
|
_logger.User("DAT information created, outputting new files");
|
||||||
bool success = true;
|
bool success = true;
|
||||||
success &= Output.WriteDatfile(sha1, outdir, _logger);
|
if (sha1.Roms.Count > 0)
|
||||||
success &= Output.WriteDatfile(md5, outdir, _logger);
|
{
|
||||||
success &= Output.WriteDatfile(crc, outdir, _logger);
|
success &= Output.WriteDatfile(sha1, outdir, _logger);
|
||||||
|
}
|
||||||
|
if (md5.Roms.Count > 0)
|
||||||
|
{
|
||||||
|
success &= Output.WriteDatfile(md5, outdir, _logger);
|
||||||
|
}
|
||||||
|
if (crc.Roms.Count > 0)
|
||||||
|
{
|
||||||
|
success &= Output.WriteDatfile(crc, outdir, _logger);
|
||||||
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user