mirror of
https://github.com/atom0s/Steamless.git
synced 2024-12-28 23:37:41 +01:00
Added fallback pattern for variant 2.0 (x86). Fixes issue #6
This commit is contained in:
parent
b3d5981784
commit
18d34ede4d
2 changed files with 8 additions and 3 deletions
|
@ -297,8 +297,13 @@ namespace Steamless.Unpacker.Variant20.x86
|
|||
{
|
||||
// Scan for the needed data by a known pattern for the block of offset data..
|
||||
var drmpOffset = Pe32Helpers.FindPattern(this.SteamDrmpData, "8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8D ?? ?? ?? ?? ?? 05");
|
||||
if (drmpOffset == 0)
|
||||
{
|
||||
// Fall-back pattern scan for certain files that fail with the above pattern..
|
||||
drmpOffset = Pe32Helpers.FindPattern(this.SteamDrmpData, "8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8B ?? ?? ?? ?? ?? 89 ?? ?? ?? ?? ?? 8B");
|
||||
if (drmpOffset == 0)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Copy the block of data from the SteamDRMP.dll data..
|
||||
var drmpOffsetData = new byte[1024];
|
||||
|
|
|
@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("a40154cd-a0fd-4371-8099-ce277e0989af")]
|
||||
[assembly: AssemblyVersion("1.0.0.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.1")]
|
||||
[assembly: AssemblyVersion("1.0.0.2")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.2")]
|
Loading…
Reference in a new issue