mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] DFD and rebuild both use extractless now
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user