mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatItem] Add HasDuplicates method for when we don't care what the dupes actually are
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user