Rewrite Verify to make more sense

This commit is contained in:
Matt Nadareski
2020-08-27 22:53:21 -07:00
parent 0c2104b243
commit 0723811e9c
2 changed files with 43 additions and 43 deletions

View File

@@ -68,9 +68,12 @@ namespace SabreTools.Features
// If we have the depot flag, respect it
if (Header.InputDepot?.IsActive ?? false)
datdata.VerifyDepot(Inputs, OutputDir);
datdata.VerifyDepot(Inputs);
else
datdata.VerifyGeneric(Inputs, OutputDir, hashOnly, quickScan, asFiles, Extras, Filter);
datdata.VerifyGeneric(Inputs, hashOnly, quickScan, asFiles, Extras, Filter);
// Now write out if there are any items left
datdata.Write(OutputDir, stats: true);
}
}
// Otherwise, process all DATs into the same output
@@ -98,9 +101,12 @@ namespace SabreTools.Features
// If we have the depot flag, respect it
if (Header.InputDepot?.IsActive ?? false)
datdata.VerifyDepot(Inputs, OutputDir);
datdata.VerifyDepot(Inputs);
else
datdata.VerifyGeneric(Inputs, OutputDir, hashOnly, quickScan, asFiles, Extras, Filter);
datdata.VerifyGeneric(Inputs, hashOnly, quickScan, asFiles, Extras, Filter);
// Now write out if there are any items left
datdata.Write(OutputDir, stats: true);
}
}
}