mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Extras and filters not needed here
This commit is contained in:
@@ -2979,16 +2979,12 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <param name="hashOnly">True if only hashes should be checked, false for full file information</param>
|
/// <param name="hashOnly">True if only hashes should be checked, false for full file information</param>
|
||||||
/// <param name="quickScan">True to enable external scanning of archives, false otherwise</param>
|
/// <param name="quickScan">True to enable external scanning of archives, false otherwise</param>
|
||||||
/// <param name="asFiles">TreatAsFiles representing CHD and Archive scanning</param>
|
/// <param name="asFiles">TreatAsFiles representing CHD and Archive scanning</param>
|
||||||
/// <param name="extras">ExtraIni object to apply to the DatFile</param>
|
|
||||||
/// <param name="filter">Filter object to be passed to the DatItem level</param>
|
|
||||||
/// <returns>True if verification was a success, false otherwise</returns>
|
/// <returns>True if verification was a success, false otherwise</returns>
|
||||||
public bool VerifyGeneric(
|
public bool VerifyGeneric(
|
||||||
List<string> inputs,
|
List<string> inputs,
|
||||||
bool hashOnly = false,
|
bool hashOnly = false,
|
||||||
bool quickScan = false,
|
bool quickScan = false,
|
||||||
TreatAsFiles asFiles = 0x00,
|
TreatAsFiles asFiles = 0x00)
|
||||||
ExtraIni extras = null,
|
|
||||||
Filter filter = null)
|
|
||||||
{
|
{
|
||||||
bool success = true;
|
bool success = true;
|
||||||
|
|
||||||
@@ -2998,8 +2994,6 @@ namespace SabreTools.Library.DatFiles
|
|||||||
{
|
{
|
||||||
// TODO: All instances of Hash.DeepHashes should be made into 0x0 eventually
|
// TODO: All instances of Hash.DeepHashes should be made into 0x0 eventually
|
||||||
PopulateFromDir(input, quickScan ? Hash.SecureHashes : Hash.DeepHashes, asFiles: asFiles);
|
PopulateFromDir(input, quickScan ? Hash.SecureHashes : Hash.DeepHashes, asFiles: asFiles);
|
||||||
ApplyExtras(extras);
|
|
||||||
ApplyFilter(filter, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we are checking hashes only, essentially diff the inputs
|
// If we are checking hashes only, essentially diff the inputs
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ namespace SabreTools.Features
|
|||||||
if (Header.InputDepot?.IsActive ?? false)
|
if (Header.InputDepot?.IsActive ?? false)
|
||||||
datdata.VerifyDepot(Inputs);
|
datdata.VerifyDepot(Inputs);
|
||||||
else
|
else
|
||||||
datdata.VerifyGeneric(Inputs, hashOnly, quickScan, asFiles, Extras, Filter);
|
datdata.VerifyGeneric(Inputs, hashOnly, quickScan, asFiles);
|
||||||
|
|
||||||
// Now write out if there are any items left
|
// Now write out if there are any items left
|
||||||
datdata.Write(OutputDir, stats: true);
|
datdata.Write(OutputDir, stats: true);
|
||||||
@@ -100,10 +100,10 @@ namespace SabreTools.Features
|
|||||||
watch.Stop();
|
watch.Stop();
|
||||||
|
|
||||||
// If we have the depot flag, respect it
|
// If we have the depot flag, respect it
|
||||||
if (Header.InputDepot?.IsActive ?? false)
|
if (Header.InputDepot?.IsActive ?? false)s
|
||||||
datdata.VerifyDepot(Inputs);
|
datdata.VerifyDepot(Inputs);
|
||||||
else
|
else
|
||||||
datdata.VerifyGeneric(Inputs, hashOnly, quickScan, asFiles, Extras, Filter);
|
datdata.VerifyGeneric(Inputs, hashOnly, quickScan, asFiles);
|
||||||
|
|
||||||
// Now write out if there are any items left
|
// Now write out if there are any items left
|
||||||
datdata.Write(OutputDir, stats: true);
|
datdata.Write(OutputDir, stats: true);
|
||||||
|
|||||||
Reference in New Issue
Block a user