mirror of
https://github.com/atom0s/Steamless.git
synced 2024-12-19 23:07:41 +01:00
Added support for new SteamStub v3.1.2 variant. (x64)
Updated all plugins to make use of reflection to get their versions from their assembly info. Added ignore for Windows image cache file. (Thumbs.db)
This commit is contained in:
parent
34afbba437
commit
14c1ad2d0b
12 changed files with 31 additions and 18 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -62,6 +62,7 @@ dlldata.c
|
|||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
Thumbs.db
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace ExamplePlugin
|
|||
using Steamless.API.Model;
|
||||
using Steamless.API.Services;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[SteamlessApiVersion(1, 0)]
|
||||
public class Main : SteamlessPlugin
|
||||
|
@ -57,7 +58,7 @@ namespace ExamplePlugin
|
|||
/// <summary>
|
||||
/// Gets the version of this plugin.
|
||||
/// </summary>
|
||||
public override Version Version => new Version(1, 0, 0, 0);
|
||||
public override Version Version => Assembly.GetExecutingAssembly().GetName().Version;
|
||||
|
||||
/// <summary>
|
||||
/// Initialize function called when this plugin is first loaded.
|
||||
|
|
|
@ -39,6 +39,7 @@ namespace Steamless.Unpacker.Variant20.x86
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
|
@ -68,7 +69,7 @@ namespace Steamless.Unpacker.Variant20.x86
|
|||
/// <summary>
|
||||
/// Gets the version of this plugin.
|
||||
/// </summary>
|
||||
public override Version Version => new Version(1, 0, 0, 0);
|
||||
public override Version Version => Assembly.GetExecutingAssembly().GetName().Version;
|
||||
|
||||
/// <summary>
|
||||
/// Internal wrapper to log a message.
|
||||
|
|
|
@ -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.2")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.2")]
|
||||
[assembly: AssemblyVersion("1.0.0.3")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.3")]
|
|
@ -35,6 +35,7 @@ namespace Steamless.Unpacker.Variant30.x64
|
|||
using Classes;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
[SteamlessApiVersion(1, 0)]
|
||||
|
@ -63,7 +64,7 @@ namespace Steamless.Unpacker.Variant30.x64
|
|||
/// <summary>
|
||||
/// Gets the version of this plugin.
|
||||
/// </summary>
|
||||
public override Version Version => new Version(1, 0, 0, 0);
|
||||
public override Version Version => Assembly.GetExecutingAssembly().GetName().Version;
|
||||
|
||||
/// <summary>
|
||||
/// Internal wrapper to log a message.
|
||||
|
|
|
@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("03621ead-77a7-4208-afdf-4b8292230a71")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("1.0.0.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.1")]
|
|
@ -35,6 +35,7 @@ namespace Steamless.Unpacker.Variant30.x86
|
|||
using Classes;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
[SteamlessApiVersion(1, 0)]
|
||||
|
@ -63,7 +64,7 @@ namespace Steamless.Unpacker.Variant30.x86
|
|||
/// <summary>
|
||||
/// Gets the version of this plugin.
|
||||
/// </summary>
|
||||
public override Version Version => new Version(1, 0, 0, 1);
|
||||
public override Version Version => Assembly.GetExecutingAssembly().GetName().Version;
|
||||
|
||||
/// <summary>
|
||||
/// Internal wrapper to log a message.
|
||||
|
|
|
@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("b6bb7a32-ab23-4a25-8914-154879aad3fe")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("1.0.0.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.1")]
|
|
@ -35,6 +35,7 @@ namespace Steamless.Unpacker.Variant31.x64
|
|||
using Classes;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
[SteamlessApiVersion(1, 0)]
|
||||
|
@ -53,17 +54,17 @@ namespace Steamless.Unpacker.Variant31.x64
|
|||
/// <summary>
|
||||
/// Gets the name of this plugin.
|
||||
/// </summary>
|
||||
public override string Name => "SteamStub Variant 3.1 Unpacker (x64)";
|
||||
public override string Name => "SteamStub Variant 3.1.x Unpacker (x64)";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the description of this plugin.
|
||||
/// </summary>
|
||||
public override string Description => "Unpacker for the 64bit SteamStub variant 3.1.";
|
||||
public override string Description => "Unpacker for the 64bit SteamStub variant 3.1.x.";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the version of this plugin.
|
||||
/// </summary>
|
||||
public override Version Version => new Version(1, 0, 0, 0);
|
||||
public override Version Version => Assembly.GetExecutingAssembly().GetName().Version;
|
||||
|
||||
/// <summary>
|
||||
/// Internal wrapper to log a message.
|
||||
|
@ -112,6 +113,12 @@ namespace Steamless.Unpacker.Variant31.x64
|
|||
var offset = Pe64Helpers.FindPattern(bind, "48 8D 91 ?? ?? ?? ?? 48"); // 3.0
|
||||
if (offset == 0)
|
||||
offset = Pe64Helpers.FindPattern(bind, "48 8D 91 ?? ?? ?? ?? 41"); // 3.1
|
||||
if (offset == 0)
|
||||
{
|
||||
offset = Pe64Helpers.FindPattern(bind, "48 C7 84 24 ?? ?? ?? ?? ?? ?? ?? ?? 48"); // 3.1.2
|
||||
if (offset > 0)
|
||||
offset += 5;
|
||||
}
|
||||
|
||||
// Ensure a pattern was found..
|
||||
if (offset == 0)
|
||||
|
|
|
@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("05f540fb-d14b-4966-8de2-591b76361cf0")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("1.0.0.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.1")]
|
|
@ -36,6 +36,7 @@ namespace Steamless.Unpacker.Variant31.x86
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
[SteamlessApiVersion(1, 0)]
|
||||
|
@ -64,7 +65,7 @@ namespace Steamless.Unpacker.Variant31.x86
|
|||
/// <summary>
|
||||
/// Gets the version of this plugin.
|
||||
/// </summary>
|
||||
public override Version Version => new Version(1, 0, 0, 1);
|
||||
public override Version Version => Assembly.GetExecutingAssembly().GetName().Version;
|
||||
|
||||
/// <summary>
|
||||
/// Internal wrapper to log a message.
|
||||
|
|
|
@ -36,5 +36,5 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("0f2fae37-f898-4392-b4f6-711954beeb4f")]
|
||||
[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