From 2aa9f088a42aaf6d768fc1dc009992291b48d13c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 8 Dec 2022 17:06:36 -0800 Subject: [PATCH] Add WTM legal trademarks check --- BurnOutSharp/ProtectionType/WTMCDProtect.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BurnOutSharp/ProtectionType/WTMCDProtect.cs b/BurnOutSharp/ProtectionType/WTMCDProtect.cs index 4150b1d8..53d4a5d7 100644 --- a/BurnOutSharp/ProtectionType/WTMCDProtect.cs +++ b/BurnOutSharp/ProtectionType/WTMCDProtect.cs @@ -18,11 +18,15 @@ namespace BurnOutSharp.ProtectionType return null; string name = pex.FileDescription; - if (!string.IsNullOrEmpty(name) && name.Contains("Copy Protection Viewer")) + if (name?.Contains("Copy Protection Viewer") == true) + return "WTM Protection Viewer"; + + name = pex.LegalTrademarks; + if (name?.Contains("WTM Copy Protection") == true) return "WTM Protection Viewer"; name = pex.ProductName; - if (!string.IsNullOrEmpty(name) && name.Contains("WTM Copy Protection Viewer")) + if (name?.Contains("WTM Copy Protection Viewer") == true) return "WTM Protection Viewer"; // Get the code/CODE section, if it exists