From d8aacbcc5d9571dbad8ad3dcb1dbf45cebf9a177 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 25 Jan 2021 09:51:16 -0800 Subject: [PATCH] Treat Wise internally a bit strangely --- BurnOutSharp/ProtectionType/WiseInstaller.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BurnOutSharp/ProtectionType/WiseInstaller.cs b/BurnOutSharp/ProtectionType/WiseInstaller.cs index ed0162f4..aba389a3 100644 --- a/BurnOutSharp/ProtectionType/WiseInstaller.cs +++ b/BurnOutSharp/ProtectionType/WiseInstaller.cs @@ -13,10 +13,9 @@ namespace BurnOutSharp.ProtectionType byte[] check = new byte[] { 0x57, 0x69, 0x73, 0x65, 0x4D, 0x61, 0x69, 0x6E }; if (fileContent.Contains(check, out int position)) { - Dictionary> protections = new Dictionary> - { - [file ?? "NO FILENAME"] = new List { "Wise Installation Wizard Module" + (scanner.IncludePosition ? $" (Index {position})" : string.Empty) }, - }; + Dictionary> protections = new Dictionary>(); + if (scanner.ScanPackers) + protections[file ?? "NO FILENAME"] = new List { "Wise Installation Wizard Module" + (scanner.IncludePosition ? $" (Index {position})" : string.Empty) }; if (file == null || !File.Exists(file)) return protections;