[ALL] Make ArchiveScanLevel and DupeType flags

This commit is contained in:
Matt Nadareski
2016-10-05 20:33:02 -07:00
parent 9d42cdf805
commit 9f9b54cb89
8 changed files with 63 additions and 54 deletions

View File

@@ -867,7 +867,7 @@ namespace SabreTools.Helper
// No duplicates
if ((diff & DiffMode.NoDupes) != 0 || (diff & DiffMode.Individuals) != 0)
{
if (rom.Dupe < DupeType.ExternalHash)
if ((rom.Dupe & DupeType.Internal) != 0)
{
// Individual DATs that are output
if ((diff & DiffMode.Individuals) != 0)
@@ -907,7 +907,7 @@ namespace SabreTools.Helper
// Duplicates only
if ((diff & DiffMode.Dupes) != 0)
{
if (rom.Dupe >= DupeType.ExternalHash)
if ((rom.Dupe & DupeType.External) != 0)
{
DatItem newrom = rom;
newrom.MachineName += " (" + Path.GetFileNameWithoutExtension(inputs[newrom.SystemID].Split('¬')[0]) + ")";