[ALL] Add infrastructure for SHA384, SHA512

This commit is contained in:
Matt Nadareski
2017-02-26 23:12:20 -08:00
parent 2da7171951
commit d3111add08
5 changed files with 44 additions and 2 deletions

View File

@@ -466,7 +466,15 @@ namespace SabreTools.Helper.Dats
{
rom.SHA256 = null;
}
if ((StripHash & Hash.SHA384) != 0)
{
rom.SHA384 = null;
}
if ((StripHash & Hash.SHA512) != 0)
{
rom.SHA512 = null;
}
items[j] = rom;
}
else if (item.Type == ItemType.Disk)

View File

@@ -226,7 +226,7 @@ namespace SabreTools.Helper.Dats
}
// If all deep hash skip flags are set, do a quickscan
if (omitFromScan == (Hash.MD5 & Hash.SHA1 & Hash.SHA256 & Hash.SHA384 & Hash.SHA512))
if (omitFromScan == Hash.DeepHashes)
{
ArchiveType? type = ArchiveTools.GetCurrentArchiveType(newItem, logger);