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
This commit is contained in:
HeroponRikiBestest
2025-05-06 15:22:11 -04:00
committed by GitHub
parent 928e93a7da
commit f87ce49f7e

View File

@@ -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()}";