Fix scanning for Solidshield 3.0.0.0 DLLs. (#403)

* Fix scanning for Solidshield 3.0.0.0 DLLs.

* Add curly braces for multiline if
This commit is contained in:
HeroponRikiBestest
2026-01-10 16:10:58 -05:00
committed by GitHub
parent 82fc850b57
commit 417c1f8208

View File

@@ -37,6 +37,13 @@ namespace BinaryObjectScanner.Protection
return $"SolidShield {GetInternalVersion(exe)}";
name = exe.ProductName;
// Only observed with Solidshield 3.0.0.0 games such as Redump ID 119211. Extracted from main executable.
if (exe.FileDescription.OptionalStartsWith("CORE Library", StringComparison.OrdinalIgnoreCase)
&& name.OptionalStartsWith("Solidshield", StringComparison.OrdinalIgnoreCase))
{
return $"SolidShield {exe.GetInternalVersion()}";
}
if (name.OptionalStartsWith("Solidshield Activation Library", StringComparison.OrdinalIgnoreCase))
return $"SolidShield Core.dll {exe.GetInternalVersion()}";