mirror of
https://github.com/atom0s/Steamless.git
synced 2024-12-28 23:37:41 +01:00
Fixed issue with variant 2.0 (x86) failing unpacking files with non-encrypted text section.
This commit is contained in:
parent
5f213235cc
commit
9a9aa8894d
3 changed files with 9 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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")]
|
||||
[assembly: AssemblyVersion("1.0.0.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.1")]
|
|
@ -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")]
|
||||
[assembly: AssemblyVersion("3.0.0.3")]
|
||||
[assembly: AssemblyFileVersion("3.0.0.3")]
|
Loading…
Reference in a new issue