Add WTM legal trademarks check

This commit is contained in:
Matt Nadareski
2022-12-08 17:06:36 -08:00
parent bb37c3f94c
commit 2aa9f088a4

View File

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