mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Don't write out unless we need to
This commit is contained in:
@@ -383,8 +383,14 @@ namespace SabreTools
|
||||
datdata.Description += " (Filtered)";
|
||||
datdata.Roms = dict;
|
||||
|
||||
// Now write the file out and return
|
||||
return Output.WriteDatfile(datdata, _outdir, _logger);
|
||||
// Now write the file out if anything is there and return
|
||||
if (datdata.Roms.Count > 0)
|
||||
{
|
||||
return Output.WriteDatfile(datdata, _outdir, _logger);
|
||||
}
|
||||
|
||||
// Otherwise, we return true because we did all we could
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user