mirror of
https://github.com/JDM170/SteamAchievementManager
synced 2025-12-10 05:37:18 +07:00
Bump ISteamApps003 to ISteamApps008.
This commit is contained in:
@@ -34,7 +34,7 @@ namespace SAM.API
|
|||||||
public Wrappers.SteamUserStats007 SteamUserStats;
|
public Wrappers.SteamUserStats007 SteamUserStats;
|
||||||
public Wrappers.SteamUtils005 SteamUtils;
|
public Wrappers.SteamUtils005 SteamUtils;
|
||||||
public Wrappers.SteamApps001 SteamApps001;
|
public Wrappers.SteamApps001 SteamApps001;
|
||||||
public Wrappers.SteamApps003 SteamApps003;
|
public Wrappers.SteamApps008 SteamApps008;
|
||||||
|
|
||||||
private bool _IsDisposed = false;
|
private bool _IsDisposed = false;
|
||||||
private int _Pipe;
|
private int _Pipe;
|
||||||
@@ -86,7 +86,7 @@ namespace SAM.API
|
|||||||
this.SteamUser = this.SteamClient.GetSteamUser012(this._User, this._Pipe);
|
this.SteamUser = this.SteamClient.GetSteamUser012(this._User, this._Pipe);
|
||||||
this.SteamUserStats = this.SteamClient.GetSteamUserStats006(this._User, this._Pipe);
|
this.SteamUserStats = this.SteamClient.GetSteamUserStats006(this._User, this._Pipe);
|
||||||
this.SteamApps001 = this.SteamClient.GetSteamApps001(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()
|
~Client()
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ using System.Runtime.InteropServices;
|
|||||||
namespace SAM.API.Interfaces
|
namespace SAM.API.Interfaces
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||||
public struct ISteamApps003
|
public struct ISteamApps008
|
||||||
{
|
{
|
||||||
public IntPtr IsSubscribed;
|
public IntPtr IsSubscribed;
|
||||||
public IntPtr IsLowViolence;
|
public IntPtr IsLowViolence;
|
||||||
@@ -36,5 +36,25 @@ namespace SAM.API.Interfaces
|
|||||||
public IntPtr GetAvailableGameLanguages;
|
public IntPtr GetAvailableGameLanguages;
|
||||||
public IntPtr IsSubscribedApp;
|
public IntPtr IsSubscribedApp;
|
||||||
public IntPtr IsDlcInstalled;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@ using SAM.API.Interfaces;
|
|||||||
|
|
||||||
namespace SAM.API.Wrappers
|
namespace SAM.API.Wrappers
|
||||||
{
|
{
|
||||||
public class SteamApps003 : NativeWrapper<ISteamApps003>
|
public class SteamApps008 : NativeWrapper<ISteamApps008>
|
||||||
{
|
{
|
||||||
#region IsSubscribed
|
#region IsSubscribed
|
||||||
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
|
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
|
||||||
@@ -206,10 +206,10 @@ namespace SAM.API.Wrappers
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region GetSteamApps003
|
#region GetSteamApps008
|
||||||
public SteamApps003 GetSteamApps003(int user, int pipe)
|
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
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ namespace SAM.Game
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var currentLanguage = this._SteamClient.SteamApps003.GetCurrentGameLanguage();
|
var currentLanguage = this._SteamClient.SteamApps008.GetCurrentGameLanguage();
|
||||||
//var currentLanguage = "german";
|
//var currentLanguage = "german";
|
||||||
|
|
||||||
this._AchievementDefinitions.Clear();
|
this._AchievementDefinitions.Clear();
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ namespace SAM.Picker
|
|||||||
|
|
||||||
private bool OwnsGame(uint id)
|
private bool OwnsGame(uint id)
|
||||||
{
|
{
|
||||||
return this._SteamClient.SteamApps003.IsSubscribedApp(id);
|
return this._SteamClient.SteamApps008.IsSubscribedApp(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddGame(uint id, string type)
|
private void AddGame(uint id, string type)
|
||||||
|
|||||||
Reference in New Issue
Block a user