From fe4526b346eb9916ff81f162d553792e9899b438 Mon Sep 17 00:00:00 2001 From: gibbed Date: Fri, 24 May 2019 14:49:13 -0500 Subject: [PATCH] Bump ISteamApps003 to ISteamApps008. --- SAM.API/Client.cs | 4 ++-- .../{ISteamApps003.cs => ISteamApps008.cs} | 22 ++++++++++++++++++- .../{SteamApps003.cs => SteamApps008.cs} | 2 +- SAM.API/Wrappers/SteamClient018.cs | 6 ++--- SAM.Game/Manager.cs | 2 +- SAM.Picker/GamePicker.cs | 2 +- 6 files changed, 29 insertions(+), 9 deletions(-) rename SAM.API/Interfaces/{ISteamApps003.cs => ISteamApps008.cs} (61%) rename SAM.API/Wrappers/{SteamApps003.cs => SteamApps008.cs} (97%) diff --git a/SAM.API/Client.cs b/SAM.API/Client.cs index ea8b889..4a33765 100644 --- a/SAM.API/Client.cs +++ b/SAM.API/Client.cs @@ -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() diff --git a/SAM.API/Interfaces/ISteamApps003.cs b/SAM.API/Interfaces/ISteamApps008.cs similarity index 61% rename from SAM.API/Interfaces/ISteamApps003.cs rename to SAM.API/Interfaces/ISteamApps008.cs index 7192240..81f281e 100644 --- a/SAM.API/Interfaces/ISteamApps003.cs +++ b/SAM.API/Interfaces/ISteamApps008.cs @@ -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; } } diff --git a/SAM.API/Wrappers/SteamApps003.cs b/SAM.API/Wrappers/SteamApps008.cs similarity index 97% rename from SAM.API/Wrappers/SteamApps003.cs rename to SAM.API/Wrappers/SteamApps008.cs index 76693bd..0ffbd63 100644 --- a/SAM.API/Wrappers/SteamApps003.cs +++ b/SAM.API/Wrappers/SteamApps008.cs @@ -26,7 +26,7 @@ using SAM.API.Interfaces; namespace SAM.API.Wrappers { - public class SteamApps003 : NativeWrapper + public class SteamApps008 : NativeWrapper { #region IsSubscribed [UnmanagedFunctionPointer(CallingConvention.ThisCall)] diff --git a/SAM.API/Wrappers/SteamClient018.cs b/SAM.API/Wrappers/SteamClient018.cs index 717a5a9..5d3a638 100644 --- a/SAM.API/Wrappers/SteamClient018.cs +++ b/SAM.API/Wrappers/SteamClient018.cs @@ -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(user, pipe, "STEAMAPPS_INTERFACE_VERSION003"); + return this.GetISteamApps(user, pipe, "STEAMAPPS_INTERFACE_VERSION008"); } #endregion } diff --git a/SAM.Game/Manager.cs b/SAM.Game/Manager.cs index 1f940f2..4b9bdc3 100644 --- a/SAM.Game/Manager.cs +++ b/SAM.Game/Manager.cs @@ -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(); diff --git a/SAM.Picker/GamePicker.cs b/SAM.Picker/GamePicker.cs index 24e9f7c..f1f39e8 100644 --- a/SAM.Picker/GamePicker.cs +++ b/SAM.Picker/GamePicker.cs @@ -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)