mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 23:05:03 +00:00
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:
committed by
GitHub
parent
928e93a7da
commit
f87ce49f7e
@@ -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()}";
|
||||
|
||||
Reference in New Issue
Block a user