From 8fe5046c1922b0512117dd68f3ab5a3811c42c1e Mon Sep 17 00:00:00 2001 From: TheRogueArchivist Date: Wed, 8 Feb 2023 14:04:47 -0700 Subject: [PATCH] Add new MGI Registration check (#232) * Add new MGI Registration check * Add new MGI Registration check * Address PR comment * Address PR comment --- BurnOutSharp/ProtectionType/MGIRegistration.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/BurnOutSharp/ProtectionType/MGIRegistration.cs b/BurnOutSharp/ProtectionType/MGIRegistration.cs index e77876ba..45fc6d74 100644 --- a/BurnOutSharp/ProtectionType/MGIRegistration.cs +++ b/BurnOutSharp/ProtectionType/MGIRegistration.cs @@ -1,4 +1,5 @@ -using System.Linq; +using System; +using System.Linq; using BurnOutSharp.Interfaces; using BurnOutSharp.Wrappers; @@ -14,11 +15,22 @@ namespace BurnOutSharp.ProtectionType if (sections == null) return null; + string name = pex.ProductName; + + // Found in "Register.dll" in IA item "MGIPhotoSuite4.0AndPhotoVista2.02001". + if (name?.Equals("MGI Registration Utility", StringComparison.Ordinal) == true) + return $"MGI Registration {Tools.Utilities.GetInternalVersion(pex)}"; + // Found in "Register.dll" from "VideoWaveIII" in IA item "mgi-videowave-iii-version-3.00-mgi-software-2000". var resources = pex.FindStringTableByEntry("MGI Registration"); if (resources.Any()) return "MGI Registration"; + // Found in "Register.dll" in IA item "MGIPhotoSuite4.0AndPhotoVista2.02001". + resources = pex.FindStringTableByEntry("Register@register.mgisoft.com"); + if (resources.Any()) + return "MGI Registration"; + return null; } }