Only scan Wise internals if scanning archives

This commit is contained in:
Matt Nadareski
2021-01-24 21:23:05 -08:00
parent 5ec4872b36
commit 6467ef97d5
2 changed files with 6 additions and 4 deletions

View File

@@ -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))

View File

@@ -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;
}