[DatFile] DFD and rebuild both use extractless now

This commit is contained in:
Matt Nadareski
2017-03-16 14:57:38 -07:00
parent 48956e7ddc
commit f535914428
2 changed files with 5 additions and 4 deletions

View File

@@ -215,12 +215,12 @@ namespace SabreTools.Helper.Dats
// If all deep hash skip flags are set, do a quickscan // If all deep hash skip flags are set, do a quickscan
if (omitFromScan == Hash.SecureHashes) if (omitFromScan == Hash.SecureHashes)
{ {
extracted = ArchiveTools.GetArchiveFileInfo(newItem); extracted = ArchiveTools.GetArchiveFileInfo(newItem, date: addDate);
} }
// Otherwise, get the list with whatever hashes are wanted // Otherwise, get the list with whatever hashes are wanted
else else
{ {
extracted = ArchiveTools.GetExtendedArchiveFileInfo(newItem, omitFromScan: omitFromScan); extracted = ArchiveTools.GetExtendedArchiveFileInfo(newItem, omitFromScan: omitFromScan, date: addDate);
} }
// If the extracted list is null, just scan the item itself // If the extracted list is null, just scan the item itself

View File

@@ -405,12 +405,13 @@ namespace SabreTools.Helper.Dats
// If we're in quickscan, use the header information // If we're in quickscan, use the header information
if (quickScan) if (quickScan)
{ {
entries = ArchiveTools.GetArchiveFileInfo(file); entries = ArchiveTools.GetArchiveFileInfo(file, date: date);
} }
// Otherwise get the deeper information // Otherwise get the deeper information
else else
{ {
entries = ArchiveTools.GetExtendedArchiveFileInfo(file); // TODO: All instances of Hash.DeepHashes should be made into 0x0 eventually
entries = ArchiveTools.GetExtendedArchiveFileInfo(file, omitFromScan: (quickScan ? Hash.SecureHashes : Hash.DeepHashes), date: date);
} }
// If the entries list is null, we encountered an error and should scan exteranlly // If the entries list is null, we encountered an error and should scan exteranlly