[DatItem] Add HasDuplicates method for when we don't care what the dupes actually are

This commit is contained in:
Matt Nadareski
2016-10-06 16:19:09 -07:00
parent 4bd4e3250f
commit b9388de8cb
2 changed files with 74 additions and 2 deletions

View File

@@ -1035,7 +1035,7 @@ namespace SabreTools.Helper
if (_datdata != null && _datdata.Files.Count > 0)
{
Rom rom = FileTools.GetFileInfo(input, _logger);
if (rom.GetDuplicates(_datdata, _logger).Count > 0)
if (rom.HasDuplicates(_datdata, _logger))
{
_logger.User("File '" + input + "' existed in the DAT, skipping...");
continue;
@@ -1062,7 +1062,7 @@ namespace SabreTools.Helper
if (_datdata != null && _datdata.Files.Count > 0)
{
Rom rom = FileTools.GetFileInfo(file, _logger);
if (rom.GetDuplicates(_datdata, _logger).Count > 0)
if (rom.HasDuplicates(_datdata, _logger))
{
_logger.User("File '" + file + "' existed in the DAT, skipping...");
continue;