From 9a9aa8894d603a9acb523a62f52ac61a4edb8cce Mon Sep 17 00:00:00 2001 From: atom0s Date: Mon, 16 Jan 2017 17:55:30 -0800 Subject: [PATCH] Fixed issue with variant 2.0 (x86) failing unpacking files with non-encrypted text section. --- Steamless.Unpacker.Variant20.x86/Main.cs | 7 +++++-- .../Properties/AssemblyInfo.cs | 4 ++-- Steamless/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Steamless.Unpacker.Variant20.x86/Main.cs b/Steamless.Unpacker.Variant20.x86/Main.cs index b1b6811..33d05a0 100644 --- a/Steamless.Unpacker.Variant20.x86/Main.cs +++ b/Steamless.Unpacker.Variant20.x86/Main.cs @@ -348,8 +348,11 @@ namespace Steamless.Unpacker.Variant20.x86 // Obtain the main code section (typically .text).. var mainSection = this.File.GetOwnerSection(this.File.GetRvaFromVa(BitConverter.ToUInt32(this.PayloadData.Skip(this.SteamDrmpOffsets[3]).Take(4).ToArray(), 0))); - if (mainSection.PointerToRawData == 0 || mainSection.SizeOfRawData == 0) - return false; + if (this.SteamDrmpOffsets[3] != 0) + { + if (mainSection.PointerToRawData == 0 || mainSection.SizeOfRawData == 0) + return false; + } this.Log($" --> {mainSection.SectionName} linked as main code section.", LogMessageType.Debug); diff --git a/Steamless.Unpacker.Variant20.x86/Properties/AssemblyInfo.cs b/Steamless.Unpacker.Variant20.x86/Properties/AssemblyInfo.cs index 17499f3..744fb5a 100644 --- a/Steamless.Unpacker.Variant20.x86/Properties/AssemblyInfo.cs +++ b/Steamless.Unpacker.Variant20.x86/Properties/AssemblyInfo.cs @@ -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.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.0.1")] +[assembly: AssemblyFileVersion("1.0.0.1")] \ No newline at end of file diff --git a/Steamless/Properties/AssemblyInfo.cs b/Steamless/Properties/AssemblyInfo.cs index ce2d7b6..a969e3a 100644 --- a/Steamless/Properties/AssemblyInfo.cs +++ b/Steamless/Properties/AssemblyInfo.cs @@ -37,5 +37,5 @@ using System.Windows; [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] -[assembly: AssemblyVersion("3.0.0.2")] -[assembly: AssemblyFileVersion("3.0.0.2")] \ No newline at end of file +[assembly: AssemblyVersion("3.0.0.3")] +[assembly: AssemblyFileVersion("3.0.0.3")] \ No newline at end of file