From d8aa4d230de05bd6b79d2111d11a9111506d6f92 Mon Sep 17 00:00:00 2001 From: TheRogueArchivist <24215969+TheRogueArchivist@users.noreply.github.com> Date: Sat, 26 Oct 2024 18:31:25 -0600 Subject: [PATCH] Fix WTM false positive (#327) "imp.dat" isn't exactly a very distinctive file name. --- BinaryObjectScanner/Protection/WTMCDProtect.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BinaryObjectScanner/Protection/WTMCDProtect.cs b/BinaryObjectScanner/Protection/WTMCDProtect.cs index e58a210c..d08e9b00 100644 --- a/BinaryObjectScanner/Protection/WTMCDProtect.cs +++ b/BinaryObjectScanner/Protection/WTMCDProtect.cs @@ -10,6 +10,7 @@ using SabreTools.Serialization.Wrappers; namespace BinaryObjectScanner.Protection { + // TODO: Document and implement support for this better, including version detection. public class WTMCDProtect : IPathCheck, IPortableExecutableCheck { /// @@ -80,7 +81,8 @@ namespace BinaryObjectScanner.Protection { new(new FilePathMatch("Image.imp"), "WTM CD Protect"), new(new FilePathMatch("Image1.imp"), "WTM CD Protect"), - new(new FilePathMatch("imp.dat"), "WTM CD Protect"), + // Disabled due to false positives. + // new(new FilePathMatch("imp.dat"), "WTM CD Protect"), new(new FilePathMatch("wtmfiles.dat"), "WTM Protection Viewer"), };