Fix update output issue

This commit is contained in:
Matt Nadareski
2020-08-01 21:54:42 -07:00
parent af0931c0f6
commit 3027fb732a
3 changed files with 20 additions and 8 deletions

View File

@@ -739,7 +739,7 @@ namespace SabreTools.Library.DatFiles
if (useGames)
Items.BucketBy(BucketedBy.Game, DedupeType.None);
else
Items.BucketBy(BucketedBy.CRC, DedupeType.Full);
Items.BucketBy(BucketedBy.CRC, DedupeType.None);
// Now we want to compare each input DAT against the base
foreach (ParentablePath path in inputs)

View File

@@ -55,7 +55,7 @@ namespace SabreTools.Library.Skippers
/// <remarks>The Stream is assumed to be in the proper position for a given test</remarks>
public bool Passes(Stream input)
{
bool result = true;
#if NET_FRAMEWORK
switch (Type)
{
case HeaderSkipTest.And:
@@ -68,9 +68,20 @@ namespace SabreTools.Library.Skippers
return CheckOr(input);
case HeaderSkipTest.Xor:
return CheckXor(input);
default:
return true;
}
return result;
#else
return Type switch
{
HeaderSkipTest.And => CheckAnd(input),
HeaderSkipTest.Data => CheckData(input),
HeaderSkipTest.File => CheckFile(input),
HeaderSkipTest.Or => CheckOr(input),
HeaderSkipTest.Xor => CheckXor(input),
_ => true,
};
#endif
}
#region Checking Helpers