Release 1.9.7.0 - Summer Update 2025
This commit is contained in:
@@ -7,8 +7,9 @@ using Steamworks.Data;
|
||||
|
||||
namespace Steamworks
|
||||
{
|
||||
internal unsafe class ISteamApps : SteamInterface
|
||||
internal unsafe partial class ISteamApps : SteamInterface
|
||||
{
|
||||
public const string Version = "STEAMAPPS_INTERFACE_VERSION008";
|
||||
|
||||
internal ISteamApps( bool IsGameServer )
|
||||
{
|
||||
@@ -156,9 +157,9 @@ namespace Steamworks
|
||||
#endregion
|
||||
internal bool BGetDLCDataByIndex( int iDLC, ref AppId pAppID, [MarshalAs( UnmanagedType.U1 )] ref bool pbAvailable, out string pchName )
|
||||
{
|
||||
using var mempchName = Helpers.TakeMemory();
|
||||
var returnValue = _BGetDLCDataByIndex( Self, iDLC, ref pAppID, ref pbAvailable, mempchName, (1024 * 32) );
|
||||
pchName = Helpers.MemoryToString( mempchName );
|
||||
using var mem__pchName = Helpers.TakeMemory();
|
||||
var returnValue = _BGetDLCDataByIndex( Self, iDLC, ref pAppID, ref pbAvailable, mem__pchName, (1024 * 32) );
|
||||
pchName = Helpers.MemoryToString( mem__pchName );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
@@ -200,9 +201,9 @@ namespace Steamworks
|
||||
#endregion
|
||||
internal bool GetCurrentBetaName( out string pchName )
|
||||
{
|
||||
using var mempchName = Helpers.TakeMemory();
|
||||
var returnValue = _GetCurrentBetaName( Self, mempchName, (1024 * 32) );
|
||||
pchName = Helpers.MemoryToString( mempchName );
|
||||
using var mem__pchName = Helpers.TakeMemory();
|
||||
var returnValue = _GetCurrentBetaName( Self, mem__pchName, (1024 * 32) );
|
||||
pchName = Helpers.MemoryToString( mem__pchName );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
@@ -236,9 +237,9 @@ namespace Steamworks
|
||||
#endregion
|
||||
internal uint GetAppInstallDir( AppId appID, out string pchFolder )
|
||||
{
|
||||
using var mempchFolder = Helpers.TakeMemory();
|
||||
var returnValue = _GetAppInstallDir( Self, appID, mempchFolder, (1024 * 32) );
|
||||
pchFolder = Helpers.MemoryToString( mempchFolder );
|
||||
using var mem__pchFolder = Helpers.TakeMemory();
|
||||
var returnValue = _GetAppInstallDir( Self, appID, mem__pchFolder, (1024 * 32) );
|
||||
pchFolder = Helpers.MemoryToString( mem__pchFolder );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
@@ -267,12 +268,13 @@ namespace Steamworks
|
||||
|
||||
#region FunctionMeta
|
||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam", CallingConvention = Platform.CC)]
|
||||
private static extern Utf8StringPointer _GetLaunchQueryParam( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey );
|
||||
private static extern Utf8StringPointer _GetLaunchQueryParam( IntPtr self, IntPtr pchKey );
|
||||
|
||||
#endregion
|
||||
internal string GetLaunchQueryParam( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey )
|
||||
internal string GetLaunchQueryParam( string pchKey )
|
||||
{
|
||||
var returnValue = _GetLaunchQueryParam( Self, pchKey );
|
||||
using var str__pchKey = new Utf8StringToNative( pchKey );
|
||||
var returnValue = _GetLaunchQueryParam( Self, str__pchKey.Pointer );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
@@ -311,12 +313,13 @@ namespace Steamworks
|
||||
|
||||
#region FunctionMeta
|
||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamApps_GetFileDetails", CallingConvention = Platform.CC)]
|
||||
private static extern SteamAPICall_t _GetFileDetails( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pszFileName );
|
||||
private static extern SteamAPICall_t _GetFileDetails( IntPtr self, IntPtr pszFileName );
|
||||
|
||||
#endregion
|
||||
internal CallResult<FileDetailsResult_t> GetFileDetails( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pszFileName )
|
||||
internal CallResult<FileDetailsResult_t> GetFileDetails( string pszFileName )
|
||||
{
|
||||
var returnValue = _GetFileDetails( Self, pszFileName );
|
||||
using var str__pszFileName = new Utf8StringToNative( pszFileName );
|
||||
var returnValue = _GetFileDetails( Self, str__pszFileName.Pointer );
|
||||
return new CallResult<FileDetailsResult_t>( returnValue, IsServer );
|
||||
}
|
||||
|
||||
@@ -327,9 +330,9 @@ namespace Steamworks
|
||||
#endregion
|
||||
internal int GetLaunchCommandLine( out string pszCommandLine )
|
||||
{
|
||||
using var mempszCommandLine = Helpers.TakeMemory();
|
||||
var returnValue = _GetLaunchCommandLine( Self, mempszCommandLine, (1024 * 32) );
|
||||
pszCommandLine = Helpers.MemoryToString( mempszCommandLine );
|
||||
using var mem__pszCommandLine = Helpers.TakeMemory();
|
||||
var returnValue = _GetLaunchCommandLine( Self, mem__pszCommandLine, (1024 * 32) );
|
||||
pszCommandLine = Helpers.MemoryToString( mem__pszCommandLine );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
@@ -369,5 +372,45 @@ namespace Steamworks
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
#region FunctionMeta
|
||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamApps_GetNumBetas", CallingConvention = Platform.CC)]
|
||||
private static extern int _GetNumBetas( IntPtr self, ref int pnAvailable, ref int pnPrivate );
|
||||
|
||||
#endregion
|
||||
internal int GetNumBetas( ref int pnAvailable, ref int pnPrivate )
|
||||
{
|
||||
var returnValue = _GetNumBetas( Self, ref pnAvailable, ref pnPrivate );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
#region FunctionMeta
|
||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamApps_GetBetaInfo", CallingConvention = Platform.CC)]
|
||||
[return: MarshalAs( UnmanagedType.I1 )]
|
||||
private static extern bool _GetBetaInfo( IntPtr self, int iBetaIndex, ref uint punFlags, ref uint punBuildID, IntPtr pchBetaName, int cchBetaName, IntPtr pchDescription, int cchDescription );
|
||||
|
||||
#endregion
|
||||
internal bool GetBetaInfo( int iBetaIndex, ref uint punFlags, ref uint punBuildID, out string pchBetaName, out string pchDescription )
|
||||
{
|
||||
using var mem__pchBetaName = Helpers.TakeMemory();
|
||||
using var mem__pchDescription = Helpers.TakeMemory();
|
||||
var returnValue = _GetBetaInfo( Self, iBetaIndex, ref punFlags, ref punBuildID, mem__pchBetaName, (1024 * 32), mem__pchDescription, (1024 * 32) );
|
||||
pchBetaName = Helpers.MemoryToString( mem__pchBetaName );
|
||||
pchDescription = Helpers.MemoryToString( mem__pchDescription );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
#region FunctionMeta
|
||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamApps_SetActiveBeta", CallingConvention = Platform.CC)]
|
||||
[return: MarshalAs( UnmanagedType.I1 )]
|
||||
private static extern bool _SetActiveBeta( IntPtr self, IntPtr pchBetaName );
|
||||
|
||||
#endregion
|
||||
internal bool SetActiveBeta( string pchBetaName )
|
||||
{
|
||||
using var str__pchBetaName = new Utf8StringToNative( pchBetaName );
|
||||
var returnValue = _SetActiveBeta( Self, str__pchBetaName.Pointer );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user