From f87ce49f7ef82632b7639271301e74416e410778 Mon Sep 17 00:00:00 2001 From: HeroponRikiBestest <50224630+HeroponRikiBestest@users.noreply.github.com> Date: Tue, 6 May 2025 15:22:11 -0400 Subject: [PATCH] make paul.dll internal name check non-case-sensitive (#365) * make paul.dll internal name check non-case-sensitive Sometimes the internal name is in all caps, like http://redump.org/disc/115608/ and http://redump.org/disc/47171/ * Added proper import for ignore case Forgot it wasn't covered by system.text --- BinaryObjectScanner/Protection/SecuROM.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BinaryObjectScanner/Protection/SecuROM.cs b/BinaryObjectScanner/Protection/SecuROM.cs index 01b9e828..b8d05c67 100644 --- a/BinaryObjectScanner/Protection/SecuROM.cs +++ b/BinaryObjectScanner/Protection/SecuROM.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.Text; using BinaryObjectScanner.Interfaces; using SabreTools.Matching; @@ -19,7 +20,7 @@ namespace BinaryObjectScanner.Protection return $"SecuROM Product Activation v{pex.GetInternalVersion()}"; name = pex.InternalName; - if (name.OptionalEquals("paul.dll")) + if (name.OptionalEquals("paul.dll", StringComparison.OrdinalIgnoreCase)) return $"SecuROM Product Activation v{pex.GetInternalVersion()}"; else if (name.OptionalEquals("paul_dll_activate_and_play.dll")) return $"SecuROM Product Activation v{pex.GetInternalVersion()}";