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

View File

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

View File

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