Bump ISteamApps003 to ISteamApps008.

This commit is contained in:
gibbed
2019-05-24 14:49:13 -05:00
parent 130d13d256
commit fe4526b346
6 changed files with 29 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ namespace SAM.API
public Wrappers.SteamUserStats007 SteamUserStats;
public Wrappers.SteamUtils005 SteamUtils;
public Wrappers.SteamApps001 SteamApps001;
public Wrappers.SteamApps003 SteamApps003;
public Wrappers.SteamApps008 SteamApps008;
private bool _IsDisposed = false;
private int _Pipe;
@@ -86,7 +86,7 @@ namespace SAM.API
this.SteamUser = this.SteamClient.GetSteamUser012(this._User, this._Pipe);
this.SteamUserStats = this.SteamClient.GetSteamUserStats006(this._User, this._Pipe);
this.SteamApps001 = this.SteamClient.GetSteamApps001(this._User, this._Pipe);
this.SteamApps003 = this.SteamClient.GetSteamApps003(this._User, this._Pipe);
this.SteamApps008 = this.SteamClient.GetSteamApps008(this._User, this._Pipe);
}
~Client()

View File

@@ -26,7 +26,7 @@ using System.Runtime.InteropServices;
namespace SAM.API.Interfaces
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ISteamApps003
public struct ISteamApps008
{
public IntPtr IsSubscribed;
public IntPtr IsLowViolence;
@@ -36,5 +36,25 @@ namespace SAM.API.Interfaces
public IntPtr GetAvailableGameLanguages;
public IntPtr IsSubscribedApp;
public IntPtr IsDlcInstalled;
public IntPtr GetEarliestPurchaseUnixTime;
public IntPtr BIsSubscribedFromFreeWeekend;
public IntPtr GetDLCCount;
public IntPtr GetDLCDataByIndex;
public IntPtr InstallDLC;
public IntPtr UninstallDLC;
public IntPtr RequestAppProofOfPurchaseKey;
public IntPtr GetCurrentBetaName;
public IntPtr MarkContentCorrupt;
public IntPtr GetInstalledDepots;
public IntPtr GetAppInstallDir;
public IntPtr IsAppInstalled;
public IntPtr GetAppOwner;
public IntPtr GetLaunchQueryParam;
public IntPtr GetDlcDownloadProgress;
public IntPtr GetAppBuildId;
public IntPtr RequestAllProofOfPurchaseKeys;
public IntPtr GetFileDetails;
public IntPtr GetLaunchCommandLine;
public IntPtr IsSubscribedFromFamilySharing;
}
}

View File

@@ -26,7 +26,7 @@ using SAM.API.Interfaces;
namespace SAM.API.Wrappers
{
public class SteamApps003 : NativeWrapper<ISteamApps003>
public class SteamApps008 : NativeWrapper<ISteamApps008>
{
#region IsSubscribed
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]

View File

@@ -206,10 +206,10 @@ namespace SAM.API.Wrappers
}
#endregion
#region GetSteamApps003
public SteamApps003 GetSteamApps003(int user, int pipe)
#region GetSteamApps008
public SteamApps008 GetSteamApps008(int user, int pipe)
{
return this.GetISteamApps<SteamApps003>(user, pipe, "STEAMAPPS_INTERFACE_VERSION003");
return this.GetISteamApps<SteamApps008>(user, pipe, "STEAMAPPS_INTERFACE_VERSION008");
}
#endregion
}

View File

@@ -250,7 +250,7 @@ namespace SAM.Game
return false;
}
var currentLanguage = this._SteamClient.SteamApps003.GetCurrentGameLanguage();
var currentLanguage = this._SteamClient.SteamApps008.GetCurrentGameLanguage();
//var currentLanguage = "german";
this._AchievementDefinitions.Clear();

View File

@@ -318,7 +318,7 @@ namespace SAM.Picker
private bool OwnsGame(uint id)
{
return this._SteamClient.SteamApps003.IsSubscribedApp(id);
return this._SteamClient.SteamApps008.IsSubscribedApp(id);
}
private void AddGame(uint id, string type)