Fix build

This commit is contained in:
Matt Nadareski
2025-01-07 15:57:17 -05:00
parent dc28242d6c
commit b576f79c98
3 changed files with 6 additions and 6 deletions

View File

@@ -222,11 +222,11 @@ namespace SabreTools.DatItems
// If the item and machine names match
if (lastMachineName == selfMachineName && lastItem.GetName() == GetName())
output = DupeType.Internal | DupeType.All;
output |= DupeType.All;
// Otherwise, hash match is assumed
else
output = DupeType.Internal | DupeType.Hash;
output |= DupeType.Hash;
return output;
}
@@ -271,11 +271,11 @@ namespace SabreTools.DatItems
// If the item and machine names match
if (lastMachineName == selfMachineName && lastItem.GetName() == GetName())
output = DupeType.Internal | DupeType.All;
output |= DupeType.All;
// Otherwise, hash match is assumed
else
output = DupeType.Internal | DupeType.Hash;
output |= DupeType.Hash;
return output;
}

View File

@@ -41,7 +41,7 @@ namespace SabreTools.Test.DatTools
if (filename != null)
filename = Path.Combine(Environment.CurrentDirectory, "TestData", filename);
var datFile = SabreTools.DatTools.Parser.CreateAndParse(filename, throwOnError: true);
var datFile = Parser.CreateAndParse(filename, throwOnError: true);
Assert.Equal(datFormat, datFile.Header.GetFieldValue<DatFormat>(DatHeader.DatFormatKey));
Assert.Equal(totalCount, datFile.Items.DatStatistics.TotalCount);
Assert.Equal(totalCount, datFile.ItemsDB.DatStatistics.TotalCount);

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using SabreTools.DatFiles;
using SabreTools.DatItems;
using SabreTools.DatItems.Formats;
using SabreTools.DatTools;
using Xunit;
namespace SabreTools.Test.Filtering