mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-30 20:53:08 +00:00
Only scan Wise internals if scanning archives
This commit is contained in:
@@ -258,7 +258,6 @@ namespace BurnOutSharp.FileType
|
||||
// If we're looking for packers too, run scans
|
||||
if (scanner.ScanPackers)
|
||||
{
|
||||
|
||||
// Armadillo
|
||||
protection = Armadillo.CheckContents(fileContent, scanner.IncludePosition);
|
||||
if (!string.IsNullOrWhiteSpace(protection))
|
||||
|
||||
@@ -21,9 +21,12 @@ namespace BurnOutSharp.ProtectionType
|
||||
if (file == null || !File.Exists(file))
|
||||
return protections;
|
||||
|
||||
var subProtections = Scan(scanner, file);
|
||||
Utilities.PrependToKeys(subProtections, file);
|
||||
Utilities.AppendToDictionary(protections, subProtections);
|
||||
if (scanner.ScanArchives)
|
||||
{
|
||||
var subProtections = Scan(scanner, file);
|
||||
Utilities.PrependToKeys(subProtections, file);
|
||||
Utilities.AppendToDictionary(protections, subProtections);
|
||||
}
|
||||
|
||||
return protections;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user