From ba0fa2e1026faea302d9ce30a9b7230038e41df1 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 26 Oct 2016 10:20:14 +0100 Subject: [PATCH] Bools as ref --- Facepunch.Steamworks/BaseSteamworks.cs | 2 +- Facepunch.Steamworks/Interop/CallResult.cs | 2 +- .../SteamNative.Platform.Interface.cs | 22 +++---- .../SteamNative.Platform.Linux32.cs | 66 +++++++++---------- .../SteamNative.Platform.Linux64.cs | 66 +++++++++---------- .../SteamNative/SteamNative.Platform.Mac.cs | 66 +++++++++---------- .../SteamNative/SteamNative.Platform.Win32.cs | 66 +++++++++---------- .../SteamNative/SteamNative.Platform.Win64.cs | 66 +++++++++---------- .../SteamNative/SteamNative.SteamApps.cs | 4 +- .../SteamNative.SteamGameServerStats.cs | 4 +- .../SteamNative/SteamNative.SteamHTTP.cs | 4 +- .../SteamNative/SteamNative.SteamUserStats.cs | 24 +++---- .../SteamNative/SteamNative.SteamUtils.cs | 8 +-- Generator/Argument.cs | 5 +- 14 files changed, 204 insertions(+), 201 deletions(-) diff --git a/Facepunch.Steamworks/BaseSteamworks.cs b/Facepunch.Steamworks/BaseSteamworks.cs index 0fa0b8f..fbdf91f 100644 --- a/Facepunch.Steamworks/BaseSteamworks.cs +++ b/Facepunch.Steamworks/BaseSteamworks.cs @@ -137,7 +137,7 @@ bool FinishCallback( CallResult call ) { bool failed = true; - if ( !native.utils.IsAPICallCompleted( call.Handle, out failed ) ) + if ( !native.utils.IsAPICallCompleted( call.Handle, ref failed ) ) return false; if ( failed ) diff --git a/Facepunch.Steamworks/Interop/CallResult.cs b/Facepunch.Steamworks/Interop/CallResult.cs index 1540d6e..f70b66a 100644 --- a/Facepunch.Steamworks/Interop/CallResult.cs +++ b/Facepunch.Steamworks/Interop/CallResult.cs @@ -32,7 +32,7 @@ internal override void Run( SteamNative.SteamUtils utils ) var data = stackalloc byte[ datasize ]; bool failed = false; - if ( !utils.GetAPICallResult( Handle, (IntPtr) data, datasize, CallbackId, out failed ) || failed ) + if ( !utils.GetAPICallResult( Handle, (IntPtr) data, datasize, CallbackId, ref failed ) || failed ) { Console.WriteLine( "FAILURE" ); return; diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Interface.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Interface.cs index 202da83..a625396 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Interface.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Interface.cs @@ -26,7 +26,7 @@ public interface Interface : IDisposable uint /*uint32*/ ISteamApps_GetEarliestPurchaseUnixTime( AppId_t /*AppId_t*/ nAppID ); bool /*bool*/ ISteamApps_BIsSubscribedFromFreeWeekend(); int /*int*/ ISteamApps_GetDLCCount(); - bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); + bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); void /*void*/ ISteamApps_InstallDLC( AppId_t /*AppId_t*/ nAppID ); void /*void*/ ISteamApps_UninstallDLC( AppId_t /*AppId_t*/ nAppID ); void /*void*/ ISteamApps_RequestAppProofOfPurchaseKey( AppId_t /*AppId_t*/ nAppID ); @@ -206,7 +206,7 @@ public interface Interface : IDisposable SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_RequestUserStats( CSteamID /*class CSteamID*/ steamIDUser ); bool /*bool*/ ISteamGameServerStats_GetUserStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); bool /*bool*/ ISteamGameServerStats_GetUserStat0( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); bool /*bool*/ ISteamGameServerStats_SetUserStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ); bool /*bool*/ ISteamGameServerStats_SetUserStat0( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ fData ); bool /*bool*/ ISteamGameServerStats_UpdateUserAvgRateStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); @@ -272,7 +272,7 @@ public interface Interface : IDisposable bool /*bool*/ ISteamHTTP_SetHTTPRequestUserAgentInfo( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, string /*const char **/ pchUserAgentInfo ); bool /*bool*/ ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, bool /*bool*/ bRequireVerifiedCertificate ); bool /*bool*/ ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, uint /*uint32*/ unMilliseconds ); - bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ); + bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ); Result /*EResult*/ ISteamInventory_GetResultStatus( SteamInventoryResult_t /*SteamInventoryResult_t*/ resultHandle ); bool /*bool*/ ISteamInventory_GetResultItems( SteamInventoryResult_t /*SteamInventoryResult_t*/ resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize ); uint /*uint32*/ ISteamInventory_GetResultTimestamp( SteamInventoryResult_t /*SteamInventoryResult_t*/ resultHandle ); @@ -576,10 +576,10 @@ public interface Interface : IDisposable bool /*bool*/ ISteamUserStats_SetStat( string /*const char **/ pchName , int /*int32*/ nData ); bool /*bool*/ ISteamUserStats_SetStat0( string /*const char **/ pchName , float /*float*/ fData ); bool /*bool*/ ISteamUserStats_UpdateAvgRateStat( string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); - bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ); bool /*bool*/ ISteamUserStats_ClearAchievement( string /*const char **/ pchName ); - bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); bool /*bool*/ ISteamUserStats_StoreStats(); int /*int*/ ISteamUserStats_GetAchievementIcon( string /*const char **/ pchName ); IntPtr ISteamUserStats_GetAchievementDisplayAttribute( string /*const char **/ pchName , string /*const char **/ pchKey ); @@ -589,8 +589,8 @@ public interface Interface : IDisposable SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestUserStats( CSteamID /*class CSteamID*/ steamIDUser ); bool /*bool*/ ISteamUserStats_GetUserStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); bool /*bool*/ ISteamUserStats_GetUserStat0( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); - bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); + bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); bool /*bool*/ ISteamUserStats_ResetAllStats( bool /*bool*/ bAchievementsToo ); SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindOrCreateLeaderboard( string /*const char **/ pchLeaderboardName , LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod , LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindLeaderboard( string /*const char **/ pchLeaderboardName ); @@ -605,8 +605,8 @@ public interface Interface : IDisposable SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_AttachLeaderboardUGC( SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC ); SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_GetNumberOfCurrentPlayers(); SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalAchievementPercentages(); - int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); - int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); + int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); + int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName , out float /*float **/ pflPercent ); SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalStats( int /*int*/ nHistoryDays ); bool /*bool*/ ISteamUserStats_GetGlobalStat( string /*const char **/ pchStatName , out long /*int64 **/ pData ); @@ -624,9 +624,9 @@ public interface Interface : IDisposable byte /*uint8*/ ISteamUtils_GetCurrentBatteryPower(); uint /*uint32*/ ISteamUtils_GetAppID(); void /*void*/ ISteamUtils_SetOverlayNotificationPosition( NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ); + bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ); SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ); - bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ); + bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ); uint /*uint32*/ ISteamUtils_GetIPCCallCount(); void /*void*/ ISteamUtils_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); bool /*bool*/ ISteamUtils_IsOverlayEnabled(); diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux32.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux32.cs index cf40adb..b35d3e1 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux32.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux32.cs @@ -871,11 +871,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() Native.ISteamUtils.SetOverlayNotificationPosition(_ptr, eNotificationPosition); } - public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, out pbFailed); + return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed); } public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ) { @@ -883,11 +883,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() return Native.ISteamUtils.GetAPICallFailureReason(_ptr, hSteamAPICall); } - public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); + return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed); } public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount() { @@ -1667,11 +1667,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievement(_ptr, pchName, out pbAchieved); + return Native.ISteamUserStats.GetAchievement(_ptr, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ) { @@ -1685,11 +1685,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.ClearAchievement(_ptr, pchName); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_StoreStats() { @@ -1745,17 +1745,17 @@ public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchie return Native.ISteamUserStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( bool /*bool*/ bAchievementsToo ) { @@ -1844,17 +1844,17 @@ public virtual IntPtr ISteamUserStats_GetLeaderboardName( SteamLeaderboard_t /*S return Native.ISteamUserStats.RequestGlobalAchievementPercentages(_ptr); } - public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } - public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName , out float /*float **/ pflPercent ) { @@ -1959,11 +1959,11 @@ public virtual IntPtr ISteamApps_GetAvailableGameLanguages() return Native.ISteamApps.GetDLCCount(_ptr); } - public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) + public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) { if ( _ptr == null ) throw new System.Exception( "ISteamApps _ptr is null!" ); - return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, out pbAvailable, pchName, cchNameBufferSize); + return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize); } public virtual void /*void*/ ISteamApps_InstallDLC( AppId_t /*AppId_t*/ nAppID ) { @@ -2615,11 +2615,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamHTTP.SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds); } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ) + public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ) { if ( _ptr == null ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, out pbWasTimedOut); + return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut); } public virtual ClientUnifiedMessageHandle /*(ClientUnifiedMessageHandle)*/ ISteamUnifiedMessages_SendMethod( string /*const char **/ pchServiceMethod , IntPtr /*const void **/ pRequestBuffer , uint /*uint32*/ unRequestBufferSize , ulong /*uint64*/ unContext ) @@ -3809,11 +3809,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamGameServerStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ) { @@ -4057,9 +4057,9 @@ internal static unsafe class ISteamUtils [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower" )] internal static extern byte /*uint8*/ GetCurrentBatteryPower( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetAppID" )] internal static extern uint /*uint32*/ GetAppID( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition" )] internal static extern void /*void*/ SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason" )] internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ GetAPICallFailureReason( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount" )] internal static extern uint /*uint32*/ GetIPCCallCount( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook" )] internal static extern void /*void*/ SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled" )] internal static extern bool /*bool*/ IsOverlayEnabled( IntPtr ISteamUtils ); @@ -4205,10 +4205,10 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_SetStat" )] internal static extern bool /*bool*/ SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_SetStat0" )] internal static extern bool /*bool*/ SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat" )] internal static extern bool /*bool*/ UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement" )] internal static extern bool /*bool*/ SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement" )] internal static extern bool /*bool*/ ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_StoreStats" )] internal static extern bool /*bool*/ StoreStats( IntPtr ISteamUserStats ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon" )] internal static extern int /*int*/ GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute" )] internal static extern IntPtr GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName , string /*const char **/ pchKey ); @@ -4218,8 +4218,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats" )] internal static extern bool /*bool*/ ResetAllStats( IntPtr ISteamUserStats, bool /*bool*/ bAchievementsToo ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName , LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod , LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName ); @@ -4234,8 +4234,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData ); @@ -4257,7 +4257,7 @@ internal static unsafe class ISteamApps [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); @@ -4385,7 +4385,7 @@ internal static unsafe class ISteamHTTP [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo" )] internal static extern bool /*bool*/ SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, string /*const char **/ pchUserAgentInfo ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate" )] internal static extern bool /*bool*/ SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, bool /*bool*/ bRequireVerifiedCertificate ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS" )] internal static extern bool /*bool*/ SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, uint /*uint32*/ unMilliseconds ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ); } internal static unsafe class ISteamUnifiedMessages @@ -4618,7 +4618,7 @@ internal static unsafe class ISteamGameServerStats [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat" )] internal static extern bool /*bool*/ SetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat0" )] internal static extern bool /*bool*/ SetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat" )] internal static extern bool /*bool*/ UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux64.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux64.cs index 640e0b6..ee28b22 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux64.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Linux64.cs @@ -871,11 +871,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() Native.ISteamUtils.SetOverlayNotificationPosition(_ptr, eNotificationPosition); } - public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, out pbFailed); + return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed); } public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ) { @@ -883,11 +883,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() return Native.ISteamUtils.GetAPICallFailureReason(_ptr, hSteamAPICall); } - public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); + return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed); } public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount() { @@ -1667,11 +1667,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievement(_ptr, pchName, out pbAchieved); + return Native.ISteamUserStats.GetAchievement(_ptr, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ) { @@ -1685,11 +1685,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.ClearAchievement(_ptr, pchName); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_StoreStats() { @@ -1745,17 +1745,17 @@ public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchie return Native.ISteamUserStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( bool /*bool*/ bAchievementsToo ) { @@ -1844,17 +1844,17 @@ public virtual IntPtr ISteamUserStats_GetLeaderboardName( SteamLeaderboard_t /*S return Native.ISteamUserStats.RequestGlobalAchievementPercentages(_ptr); } - public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } - public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName , out float /*float **/ pflPercent ) { @@ -1959,11 +1959,11 @@ public virtual IntPtr ISteamApps_GetAvailableGameLanguages() return Native.ISteamApps.GetDLCCount(_ptr); } - public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) + public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) { if ( _ptr == null ) throw new System.Exception( "ISteamApps _ptr is null!" ); - return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, out pbAvailable, pchName, cchNameBufferSize); + return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize); } public virtual void /*void*/ ISteamApps_InstallDLC( AppId_t /*AppId_t*/ nAppID ) { @@ -2615,11 +2615,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamHTTP.SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds); } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ) + public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ) { if ( _ptr == null ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, out pbWasTimedOut); + return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut); } public virtual ClientUnifiedMessageHandle /*(ClientUnifiedMessageHandle)*/ ISteamUnifiedMessages_SendMethod( string /*const char **/ pchServiceMethod , IntPtr /*const void **/ pRequestBuffer , uint /*uint32*/ unRequestBufferSize , ulong /*uint64*/ unContext ) @@ -3809,11 +3809,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamGameServerStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ) { @@ -4057,9 +4057,9 @@ internal static unsafe class ISteamUtils [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower" )] internal static extern byte /*uint8*/ GetCurrentBatteryPower( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_GetAppID" )] internal static extern uint /*uint32*/ GetAppID( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition" )] internal static extern void /*void*/ SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason" )] internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ GetAPICallFailureReason( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount" )] internal static extern uint /*uint32*/ GetIPCCallCount( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook" )] internal static extern void /*void*/ SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled" )] internal static extern bool /*bool*/ IsOverlayEnabled( IntPtr ISteamUtils ); @@ -4205,10 +4205,10 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_SetStat" )] internal static extern bool /*bool*/ SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_SetStat0" )] internal static extern bool /*bool*/ SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat" )] internal static extern bool /*bool*/ UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement" )] internal static extern bool /*bool*/ SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement" )] internal static extern bool /*bool*/ ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_StoreStats" )] internal static extern bool /*bool*/ StoreStats( IntPtr ISteamUserStats ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon" )] internal static extern int /*int*/ GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute" )] internal static extern IntPtr GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName , string /*const char **/ pchKey ); @@ -4218,8 +4218,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats" )] internal static extern bool /*bool*/ ResetAllStats( IntPtr ISteamUserStats, bool /*bool*/ bAchievementsToo ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName , LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod , LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName ); @@ -4234,8 +4234,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData ); @@ -4257,7 +4257,7 @@ internal static unsafe class ISteamApps [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); @@ -4385,7 +4385,7 @@ internal static unsafe class ISteamHTTP [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo" )] internal static extern bool /*bool*/ SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, string /*const char **/ pchUserAgentInfo ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate" )] internal static extern bool /*bool*/ SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, bool /*bool*/ bRequireVerifiedCertificate ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS" )] internal static extern bool /*bool*/ SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, uint /*uint32*/ unMilliseconds ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ); } internal static unsafe class ISteamUnifiedMessages @@ -4618,7 +4618,7 @@ internal static unsafe class ISteamGameServerStats [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat" )] internal static extern bool /*bool*/ SetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat0" )] internal static extern bool /*bool*/ SetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "libsteam_api64.so", EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat" )] internal static extern bool /*bool*/ UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Mac.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Mac.cs index 1a6127b..91b35d1 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Mac.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Mac.cs @@ -871,11 +871,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() Native.ISteamUtils.SetOverlayNotificationPosition(_ptr, eNotificationPosition); } - public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, out pbFailed); + return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed); } public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ) { @@ -883,11 +883,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() return Native.ISteamUtils.GetAPICallFailureReason(_ptr, hSteamAPICall); } - public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); + return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed); } public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount() { @@ -1667,11 +1667,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievement(_ptr, pchName, out pbAchieved); + return Native.ISteamUserStats.GetAchievement(_ptr, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ) { @@ -1685,11 +1685,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.ClearAchievement(_ptr, pchName); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_StoreStats() { @@ -1745,17 +1745,17 @@ public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchie return Native.ISteamUserStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( bool /*bool*/ bAchievementsToo ) { @@ -1844,17 +1844,17 @@ public virtual IntPtr ISteamUserStats_GetLeaderboardName( SteamLeaderboard_t /*S return Native.ISteamUserStats.RequestGlobalAchievementPercentages(_ptr); } - public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } - public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName , out float /*float **/ pflPercent ) { @@ -1959,11 +1959,11 @@ public virtual IntPtr ISteamApps_GetAvailableGameLanguages() return Native.ISteamApps.GetDLCCount(_ptr); } - public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) + public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) { if ( _ptr == null ) throw new System.Exception( "ISteamApps _ptr is null!" ); - return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, out pbAvailable, pchName, cchNameBufferSize); + return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize); } public virtual void /*void*/ ISteamApps_InstallDLC( AppId_t /*AppId_t*/ nAppID ) { @@ -2615,11 +2615,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamHTTP.SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds); } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ) + public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ) { if ( _ptr == null ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, out pbWasTimedOut); + return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut); } public virtual ClientUnifiedMessageHandle /*(ClientUnifiedMessageHandle)*/ ISteamUnifiedMessages_SendMethod( string /*const char **/ pchServiceMethod , IntPtr /*const void **/ pRequestBuffer , uint /*uint32*/ unRequestBufferSize , ulong /*uint64*/ unContext ) @@ -3809,11 +3809,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamGameServerStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ) { @@ -4057,9 +4057,9 @@ internal static unsafe class ISteamUtils [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower" )] internal static extern byte /*uint8*/ GetCurrentBatteryPower( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_GetAppID" )] internal static extern uint /*uint32*/ GetAppID( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition" )] internal static extern void /*void*/ SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason" )] internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ GetAPICallFailureReason( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount" )] internal static extern uint /*uint32*/ GetIPCCallCount( IntPtr ISteamUtils ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook" )] internal static extern void /*void*/ SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled" )] internal static extern bool /*bool*/ IsOverlayEnabled( IntPtr ISteamUtils ); @@ -4205,10 +4205,10 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_SetStat" )] internal static extern bool /*bool*/ SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_SetStat0" )] internal static extern bool /*bool*/ SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat" )] internal static extern bool /*bool*/ UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement" )] internal static extern bool /*bool*/ SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement" )] internal static extern bool /*bool*/ ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_StoreStats" )] internal static extern bool /*bool*/ StoreStats( IntPtr ISteamUserStats ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon" )] internal static extern int /*int*/ GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute" )] internal static extern IntPtr GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName , string /*const char **/ pchKey ); @@ -4218,8 +4218,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats" )] internal static extern bool /*bool*/ ResetAllStats( IntPtr ISteamUserStats, bool /*bool*/ bAchievementsToo ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName , LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod , LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName ); @@ -4234,8 +4234,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData ); @@ -4257,7 +4257,7 @@ internal static unsafe class ISteamApps [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); @@ -4385,7 +4385,7 @@ internal static unsafe class ISteamHTTP [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo" )] internal static extern bool /*bool*/ SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, string /*const char **/ pchUserAgentInfo ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate" )] internal static extern bool /*bool*/ SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, bool /*bool*/ bRequireVerifiedCertificate ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS" )] internal static extern bool /*bool*/ SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, uint /*uint32*/ unMilliseconds ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ); } internal static unsafe class ISteamUnifiedMessages @@ -4618,7 +4618,7 @@ internal static unsafe class ISteamGameServerStats [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat" )] internal static extern bool /*bool*/ SetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat0" )] internal static extern bool /*bool*/ SetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "libsteam_api.dylib", EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat" )] internal static extern bool /*bool*/ UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win32.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win32.cs index ea0c9ab..2c08e1e 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win32.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win32.cs @@ -868,11 +868,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() Native.ISteamUtils.SetOverlayNotificationPosition(_ptr, eNotificationPosition); } - public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, out pbFailed); + return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed); } public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ) { @@ -880,11 +880,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() return Native.ISteamUtils.GetAPICallFailureReason(_ptr, hSteamAPICall); } - public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); + return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed); } public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount() { @@ -1664,11 +1664,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievement(_ptr, pchName, out pbAchieved); + return Native.ISteamUserStats.GetAchievement(_ptr, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ) { @@ -1682,11 +1682,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.ClearAchievement(_ptr, pchName); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_StoreStats() { @@ -1742,17 +1742,17 @@ public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchie return Native.ISteamUserStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( bool /*bool*/ bAchievementsToo ) { @@ -1838,17 +1838,17 @@ public virtual IntPtr ISteamUserStats_GetLeaderboardName( SteamLeaderboard_t /*S return Native.ISteamUserStats.RequestGlobalAchievementPercentages(_ptr); } - public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } - public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName , out float /*float **/ pflPercent ) { @@ -1953,11 +1953,11 @@ public virtual IntPtr ISteamApps_GetAvailableGameLanguages() return Native.ISteamApps.GetDLCCount(_ptr); } - public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) + public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) { if ( _ptr == null ) throw new System.Exception( "ISteamApps _ptr is null!" ); - return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, out pbAvailable, pchName, cchNameBufferSize); + return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize); } public virtual void /*void*/ ISteamApps_InstallDLC( AppId_t /*AppId_t*/ nAppID ) { @@ -2606,11 +2606,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamHTTP.SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds); } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ) + public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ) { if ( _ptr == null ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, out pbWasTimedOut); + return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut); } public virtual ClientUnifiedMessageHandle /*(ClientUnifiedMessageHandle)*/ ISteamUnifiedMessages_SendMethod( string /*const char **/ pchServiceMethod , IntPtr /*const void **/ pRequestBuffer , uint /*uint32*/ unRequestBufferSize , ulong /*uint64*/ unContext ) @@ -3797,11 +3797,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamGameServerStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ) { @@ -4045,9 +4045,9 @@ internal static unsafe class ISteamUtils [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower" )] internal static extern byte /*uint8*/ GetCurrentBatteryPower( IntPtr ISteamUtils ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetAppID" )] internal static extern uint /*uint32*/ GetAppID( IntPtr ISteamUtils ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition" )] internal static extern void /*void*/ SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason" )] internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ GetAPICallFailureReason( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount" )] internal static extern uint /*uint32*/ GetIPCCallCount( IntPtr ISteamUtils ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook" )] internal static extern void /*void*/ SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled" )] internal static extern bool /*bool*/ IsOverlayEnabled( IntPtr ISteamUtils ); @@ -4193,10 +4193,10 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_SetStat" )] internal static extern bool /*bool*/ SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_SetStat0" )] internal static extern bool /*bool*/ SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat" )] internal static extern bool /*bool*/ UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement" )] internal static extern bool /*bool*/ SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement" )] internal static extern bool /*bool*/ ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_StoreStats" )] internal static extern bool /*bool*/ StoreStats( IntPtr ISteamUserStats ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon" )] internal static extern int /*int*/ GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute" )] internal static extern IntPtr GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName , string /*const char **/ pchKey ); @@ -4206,8 +4206,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats" )] internal static extern bool /*bool*/ ResetAllStats( IntPtr ISteamUserStats, bool /*bool*/ bAchievementsToo ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName , LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod , LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName ); @@ -4222,8 +4222,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData ); @@ -4245,7 +4245,7 @@ internal static unsafe class ISteamApps [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); @@ -4373,7 +4373,7 @@ internal static unsafe class ISteamHTTP [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo" )] internal static extern bool /*bool*/ SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, string /*const char **/ pchUserAgentInfo ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate" )] internal static extern bool /*bool*/ SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, bool /*bool*/ bRequireVerifiedCertificate ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS" )] internal static extern bool /*bool*/ SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, uint /*uint32*/ unMilliseconds ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ); } internal static unsafe class ISteamUnifiedMessages @@ -4606,7 +4606,7 @@ internal static unsafe class ISteamGameServerStats [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat" )] internal static extern bool /*bool*/ SetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat0" )] internal static extern bool /*bool*/ SetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat" )] internal static extern bool /*bool*/ UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win64.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win64.cs index a5ece80..61a923e 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win64.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.Platform.Win64.cs @@ -868,11 +868,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() Native.ISteamUtils.SetOverlayNotificationPosition(_ptr, eNotificationPosition); } - public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, out pbFailed); + return Native.ISteamUtils.IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed); } public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ) { @@ -880,11 +880,11 @@ public virtual IntPtr ISteamUtils_GetIPCountry() return Native.ISteamUtils.GetAPICallFailureReason(_ptr, hSteamAPICall); } - public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ) + public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ) { if ( _ptr == null ) throw new System.Exception( "ISteamUtils _ptr is null!" ); - return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, out pbFailed); + return Native.ISteamUtils.GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed); } public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount() { @@ -1664,11 +1664,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievement(_ptr, pchName, out pbAchieved); + return Native.ISteamUserStats.GetAchievement(_ptr, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName ) { @@ -1682,11 +1682,11 @@ public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile return Native.ISteamUserStats.ClearAchievement(_ptr, pchName); } - public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_StoreStats() { @@ -1742,17 +1742,17 @@ public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchie return Native.ISteamUserStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamUserStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } - public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) + public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, out pbAchieved, out punUnlockTime); + return Native.ISteamUserStats.GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime); } public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( bool /*bool*/ bAchievementsToo ) { @@ -1838,17 +1838,17 @@ public virtual IntPtr ISteamUserStats_GetLeaderboardName( SteamLeaderboard_t /*S return Native.ISteamUserStats.RequestGlobalAchievementPercentages(_ptr); } - public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } - public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ) + public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamUserStats _ptr is null!" ); - return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, out pbAchieved); + return Native.ISteamUserStats.GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved); } public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName , out float /*float **/ pflPercent ) { @@ -1953,11 +1953,11 @@ public virtual IntPtr ISteamApps_GetAvailableGameLanguages() return Native.ISteamApps.GetDLCCount(_ptr); } - public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) + public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ) { if ( _ptr == null ) throw new System.Exception( "ISteamApps _ptr is null!" ); - return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, out pbAvailable, pchName, cchNameBufferSize); + return Native.ISteamApps.BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize); } public virtual void /*void*/ ISteamApps_InstallDLC( AppId_t /*AppId_t*/ nAppID ) { @@ -2606,11 +2606,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamHTTP.SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds); } - public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ) + public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ) { if ( _ptr == null ) throw new System.Exception( "ISteamHTTP _ptr is null!" ); - return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, out pbWasTimedOut); + return Native.ISteamHTTP.GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut); } public virtual ClientUnifiedMessageHandle /*(ClientUnifiedMessageHandle)*/ ISteamUnifiedMessages_SendMethod( string /*const char **/ pchServiceMethod , IntPtr /*const void **/ pRequestBuffer , uint /*uint32*/ unRequestBufferSize , ulong /*uint64*/ unContext ) @@ -3797,11 +3797,11 @@ public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pc return Native.ISteamGameServerStats.GetUserStat0(_ptr, steamIDUser, pchName, out pData); } - public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ) + public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ) { if ( _ptr == null ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" ); - return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, out pbAchieved); + return Native.ISteamGameServerStats.GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved); } public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ) { @@ -4045,9 +4045,9 @@ internal static unsafe class ISteamUtils [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower" )] internal static extern byte /*uint8*/ GetCurrentBatteryPower( IntPtr ISteamUtils ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetAppID" )] internal static extern uint /*uint32*/ GetAppID( IntPtr ISteamUtils ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition" )] internal static extern void /*void*/ SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, out bool /*bool **/ pbFailed ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted" )] internal static extern bool /*bool*/ IsAPICallCompleted( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, ref bool /*bool **/ pbFailed ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason" )] internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ GetAPICallFailureReason( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , out bool /*bool **/ pbFailed ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult" )] internal static extern bool /*bool*/ GetAPICallResult( IntPtr ISteamUtils, SteamAPICall_t /*SteamAPICall_t*/ hSteamAPICall, IntPtr /*void **/ pCallback , int /*int*/ cubCallback , int /*int*/ iCallbackExpected , ref bool /*bool **/ pbFailed ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount" )] internal static extern uint /*uint32*/ GetIPCCallCount( IntPtr ISteamUtils ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook" )] internal static extern void /*void*/ SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled" )] internal static extern bool /*bool*/ IsOverlayEnabled( IntPtr ISteamUtils ); @@ -4193,10 +4193,10 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_SetStat" )] internal static extern bool /*bool*/ SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_SetStat0" )] internal static extern bool /*bool*/ SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat" )] internal static extern bool /*bool*/ UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement" )] internal static extern bool /*bool*/ GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement" )] internal static extern bool /*bool*/ SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement" )] internal static extern bool /*bool*/ ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_StoreStats" )] internal static extern bool /*bool*/ StoreStats( IntPtr ISteamUserStats ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon" )] internal static extern int /*int*/ GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute" )] internal static extern IntPtr GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName , string /*const char **/ pchKey ); @@ -4206,8 +4206,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime" )] internal static extern bool /*bool*/ GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats" )] internal static extern bool /*bool*/ ResetAllStats( IntPtr ISteamUserStats, bool /*bool*/ bAchievementsToo ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName , LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod , LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName ); @@ -4222,8 +4222,8 @@ internal static unsafe class ISteamUserStats [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData ); @@ -4245,7 +4245,7 @@ internal static unsafe class ISteamApps [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID ); @@ -4373,7 +4373,7 @@ internal static unsafe class ISteamHTTP [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo" )] internal static extern bool /*bool*/ SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, string /*const char **/ pchUserAgentInfo ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate" )] internal static extern bool /*bool*/ SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, bool /*bool*/ bRequireVerifiedCertificate ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS" )] internal static extern bool /*bool*/ SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, uint /*uint32*/ unMilliseconds ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, out bool /*bool **/ pbWasTimedOut ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut" )] internal static extern bool /*bool*/ GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, HTTPRequestHandle /*HTTPRequestHandle*/ hRequest, ref bool /*bool **/ pbWasTimedOut ); } internal static unsafe class ISteamUnifiedMessages @@ -4606,7 +4606,7 @@ internal static unsafe class ISteamGameServerStats [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ RequestUserStats( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat" )] internal static extern bool /*bool*/ GetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out int /*int32 **/ pData ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat0" )] internal static extern bool /*bool*/ GetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out float /*float **/ pData ); - [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , out bool /*bool **/ pbAchieved ); + [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement" )] internal static extern bool /*bool*/ GetUserAchievement( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , ref bool /*bool **/ pbAchieved ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat" )] internal static extern bool /*bool*/ SetUserStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , int /*int32*/ nData ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat0" )] internal static extern bool /*bool*/ SetUserStat0( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ fData ); [DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat" )] internal static extern bool /*bool*/ UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchName , float /*float*/ flCountThisSession , double /*double*/ dSessionLength ); diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamApps.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamApps.cs index 64bf902..2f67e2e 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamApps.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.SteamApps.cs @@ -41,13 +41,13 @@ public virtual void Dispose() // bool // with: Detect_StringFetch False - public bool BGetDLCDataByIndex( int iDLC /*int*/, ref AppId_t pAppID /*AppId_t **/, out bool pbAvailable /*bool **/, out string pchName /*char **/ ) + public bool BGetDLCDataByIndex( int iDLC /*int*/, ref AppId_t pAppID /*AppId_t **/, ref bool pbAvailable /*bool **/, out string pchName /*char **/ ) { bool bSuccess = default( bool ); pchName = string.Empty; System.Text.StringBuilder pchName_sb = new System.Text.StringBuilder( 4096 ); int cchNameBufferSize = 4096; - bSuccess = _pi.ISteamApps_BGetDLCDataByIndex( iDLC, ref pAppID, out pbAvailable, pchName_sb, cchNameBufferSize ); + bSuccess = _pi.ISteamApps_BGetDLCDataByIndex( iDLC, ref pAppID, ref pbAvailable, pchName_sb, cchNameBufferSize ); if ( !bSuccess ) return bSuccess; pchName = pchName_sb.ToString(); return bSuccess; diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServerStats.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServerStats.cs index 2bc256c..298a8c1 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServerStats.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.SteamGameServerStats.cs @@ -46,9 +46,9 @@ public bool ClearUserAchievement( CSteamID steamIDUser /*class CSteamID*/, strin } // bool - public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out bool pbAchieved /*bool **/ ) + public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, ref bool pbAchieved /*bool **/ ) { - return _pi.ISteamGameServerStats_GetUserAchievement( steamIDUser, pchName, out pbAchieved ); + return _pi.ISteamGameServerStats_GetUserAchievement( steamIDUser, pchName, ref pbAchieved ); } // bool diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTTP.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTTP.cs index e0e511c..fb38480 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTTP.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.SteamHTTP.cs @@ -64,9 +64,9 @@ public bool GetHTTPDownloadProgressPct( HTTPRequestHandle hRequest /*HTTPRequest } // bool - public bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, out bool pbWasTimedOut /*bool **/ ) + public bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, ref bool pbWasTimedOut /*bool **/ ) { - return _pi.ISteamHTTP_GetHTTPRequestWasTimedOut( hRequest, out pbWasTimedOut ); + return _pi.ISteamHTTP_GetHTTPRequestWasTimedOut( hRequest, ref pbWasTimedOut ); } // bool diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUserStats.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamUserStats.cs index 0fca57e..774597f 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUserStats.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.SteamUserStats.cs @@ -76,9 +76,9 @@ public SteamAPICall_t FindOrCreateLeaderboard( string pchLeaderboardName /*const } // bool - public bool GetAchievement( string pchName /*const char **/, out bool pbAchieved /*bool **/ ) + public bool GetAchievement( string pchName /*const char **/, ref bool pbAchieved /*bool **/ ) { - return _pi.ISteamUserStats_GetAchievement( pchName, out pbAchieved ); + return _pi.ISteamUserStats_GetAchievement( pchName, ref pbAchieved ); } // bool @@ -88,9 +88,9 @@ public bool GetAchievementAchievedPercent( string pchName /*const char **/, out } // bool - public bool GetAchievementAndUnlockTime( string pchName /*const char **/, out bool pbAchieved /*bool **/, out uint punUnlockTime /*uint32 **/ ) + public bool GetAchievementAndUnlockTime( string pchName /*const char **/, ref bool pbAchieved /*bool **/, out uint punUnlockTime /*uint32 **/ ) { - return _pi.ISteamUserStats_GetAchievementAndUnlockTime( pchName, out pbAchieved, out punUnlockTime ); + return _pi.ISteamUserStats_GetAchievementAndUnlockTime( pchName, ref pbAchieved, out punUnlockTime ); } // string @@ -176,13 +176,13 @@ public LeaderboardSortMethod GetLeaderboardSortMethod( SteamLeaderboard_t hSteam // int // with: Detect_StringFetch False - public int GetMostAchievedAchievementInfo( out string pchName /*char **/, out float pflPercent /*float **/, out bool pbAchieved /*bool **/ ) + public int GetMostAchievedAchievementInfo( out string pchName /*char **/, out float pflPercent /*float **/, ref bool pbAchieved /*bool **/ ) { int bSuccess = default( int ); pchName = string.Empty; System.Text.StringBuilder pchName_sb = new System.Text.StringBuilder( 4096 ); uint unNameBufLen = 4096; - bSuccess = _pi.ISteamUserStats_GetMostAchievedAchievementInfo( pchName_sb, unNameBufLen, out pflPercent, out pbAchieved ); + bSuccess = _pi.ISteamUserStats_GetMostAchievedAchievementInfo( pchName_sb, unNameBufLen, out pflPercent, ref pbAchieved ); if ( bSuccess <= 0 ) return bSuccess; pchName = pchName_sb.ToString(); return bSuccess; @@ -190,13 +190,13 @@ public int GetMostAchievedAchievementInfo( out string pchName /*char **/, out fl // int // with: Detect_StringFetch False - public int GetNextMostAchievedAchievementInfo( int iIteratorPrevious /*int*/, out string pchName /*char **/, out float pflPercent /*float **/, out bool pbAchieved /*bool **/ ) + public int GetNextMostAchievedAchievementInfo( int iIteratorPrevious /*int*/, out string pchName /*char **/, out float pflPercent /*float **/, ref bool pbAchieved /*bool **/ ) { int bSuccess = default( int ); pchName = string.Empty; System.Text.StringBuilder pchName_sb = new System.Text.StringBuilder( 4096 ); uint unNameBufLen = 4096; - bSuccess = _pi.ISteamUserStats_GetNextMostAchievedAchievementInfo( iIteratorPrevious, pchName_sb, unNameBufLen, out pflPercent, out pbAchieved ); + bSuccess = _pi.ISteamUserStats_GetNextMostAchievedAchievementInfo( iIteratorPrevious, pchName_sb, unNameBufLen, out pflPercent, ref pbAchieved ); if ( bSuccess <= 0 ) return bSuccess; pchName = pchName_sb.ToString(); return bSuccess; @@ -227,15 +227,15 @@ public bool GetStat0( string pchName /*const char **/, out float pData /*float * } // bool - public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out bool pbAchieved /*bool **/ ) + public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, ref bool pbAchieved /*bool **/ ) { - return _pi.ISteamUserStats_GetUserAchievement( steamIDUser, pchName, out pbAchieved ); + return _pi.ISteamUserStats_GetUserAchievement( steamIDUser, pchName, ref pbAchieved ); } // bool - public bool GetUserAchievementAndUnlockTime( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out bool pbAchieved /*bool **/, out uint punUnlockTime /*uint32 **/ ) + public bool GetUserAchievementAndUnlockTime( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, ref bool pbAchieved /*bool **/, out uint punUnlockTime /*uint32 **/ ) { - return _pi.ISteamUserStats_GetUserAchievementAndUnlockTime( steamIDUser, pchName, out pbAchieved, out punUnlockTime ); + return _pi.ISteamUserStats_GetUserAchievementAndUnlockTime( steamIDUser, pchName, ref pbAchieved, out punUnlockTime ); } // bool diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUtils.cs b/Facepunch.Steamworks/SteamNative/SteamNative.SteamUtils.cs index 3ebb6ab..1ea9d3e 100644 --- a/Facepunch.Steamworks/SteamNative/SteamNative.SteamUtils.cs +++ b/Facepunch.Steamworks/SteamNative/SteamNative.SteamUtils.cs @@ -58,9 +58,9 @@ public SteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall } // bool - public bool GetAPICallResult( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, IntPtr pCallback /*void **/, int cubCallback /*int*/, int iCallbackExpected /*int*/, out bool pbFailed /*bool **/ ) + public bool GetAPICallResult( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, IntPtr pCallback /*void **/, int cubCallback /*int*/, int iCallbackExpected /*int*/, ref bool pbFailed /*bool **/ ) { - return _pi.ISteamUtils_GetAPICallResult( hSteamAPICall, (IntPtr) pCallback, cubCallback, iCallbackExpected, out pbFailed ); + return _pi.ISteamUtils_GetAPICallResult( hSteamAPICall, (IntPtr) pCallback, cubCallback, iCallbackExpected, ref pbFailed ); } // uint @@ -160,9 +160,9 @@ public string GetSteamUILanguage() } // bool - public bool IsAPICallCompleted( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, out bool pbFailed /*bool **/ ) + public bool IsAPICallCompleted( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, ref bool pbFailed /*bool **/ ) { - return _pi.ISteamUtils_IsAPICallCompleted( hSteamAPICall, out pbFailed ); + return _pi.ISteamUtils_IsAPICallCompleted( hSteamAPICall, ref pbFailed ); } // bool diff --git a/Generator/Argument.cs b/Generator/Argument.cs index 66de771..a8af39a 100644 --- a/Generator/Argument.cs +++ b/Generator/Argument.cs @@ -44,6 +44,9 @@ bool IsStructShouldBePassedAsRef { get { + if ( ManagedType.Contains( "bool*" ) ) + return true; + return ManagedType.EndsWith( "*" ) && ManagedType.Contains( "_t" ) && Name.StartsWith( "p" ) && !Name.StartsWith( "pvec" ); } } @@ -52,7 +55,7 @@ bool ShouldBePassedAsOut { get { - return ManagedType.EndsWith( "*" ) && !ManagedType.Contains( "_t" ) && !ManagedType.Contains( "char" ); + return ManagedType.EndsWith( "*" ) && !ManagedType.Contains( "_t" ) && !ManagedType.Contains( "char" ) && !ManagedType.Contains( "bool" ); } }