1616
1717namespace Steamworks {
1818 public static class Version {
19- public const string SteamworksNETVersion = "13 .0.0" ;
20- public const string SteamworksSDKVersion = "1.47 " ;
21- public const string SteamAPIDLLVersion = "05.53.33.78 " ;
22- public const int SteamAPIDLLSize = 261072 ;
23- public const int SteamAPI64DLLSize = 290768 ;
19+ public const string SteamworksNETVersion = "14 .0.0" ;
20+ public const string SteamworksSDKVersion = "1.48 " ;
21+ public const string SteamAPIDLLVersion = "05.69.73.98 " ;
22+ public const int SteamAPIDLLSize = 237856 ;
23+ public const int SteamAPI64DLLSize = 262944 ;
2424 }
2525
2626 public static class SteamAPI {
@@ -31,6 +31,7 @@ public static class SteamAPI {
3131 //
3232 //----------------------------------------------------------------------------------------------------------------------------------------------------------//
3333
34+
3435 // SteamAPI_Init must be called before using any other API functions. If it fails, an
3536 // error message will be output to the debugger (or stderr) with further information.
3637 public static bool Init ( ) {
@@ -49,9 +50,11 @@ public static bool Init() {
4950 return ret ;
5051 }
5152
53+ // SteamAPI_Shutdown should be called during process shutdown if possible.
5254 public static void Shutdown ( ) {
5355 InteropHelp . TestIfPlatformSupported ( ) ;
5456 NativeMethods . SteamAPI_Shutdown ( ) ;
57+ CSteamAPIContext . Clear ( ) ;
5558 }
5659
5760 // SteamAPI_RestartAppIfNecessary ensures that your executable was launched through Steam.
@@ -78,7 +81,6 @@ public static void ReleaseCurrentThreadMemory() {
7881 NativeMethods . SteamAPI_ReleaseCurrentThreadMemory ( ) ;
7982 }
8083
81-
8284 //----------------------------------------------------------------------------------------------------------------------------------------------------------//
8385 // steam callback and call-result helpers
8486 //
@@ -99,9 +101,14 @@ public static void ReleaseCurrentThreadMemory() {
99101 //
100102 // Callbacks and call-results are queued automatically and are only
101103 // delivered/executed when your application calls SteamAPI_RunCallbacks().
104+ //
105+ // Note that there is an alternative, lower level callback dispatch mechanism.
106+ // See SteamAPI_ManualDispatch_Init
102107 //----------------------------------------------------------------------------------------------------------------------------------------------------------//
103108
104- // SteamAPI_RunCallbacks is safe to call from multiple threads simultaneously,
109+ // Dispatch all queued Steamworks callbacks.
110+ //
111+ // This is safe to call from multiple threads simultaneously,
105112 // but if you choose to do this, callback code could be executed on any thread.
106113 // One alternative is to call SteamAPI_RunCallbacks from the main thread only,
107114 // and call SteamAPI_ReleaseCurrentThreadMemory regularly on other threads.
@@ -122,12 +129,6 @@ public static bool IsSteamRunning() {
122129 return NativeMethods . SteamAPI_IsSteamRunning ( ) ;
123130 }
124131
125- // returns the HSteamUser of the last user to dispatch a callback
126- public static HSteamUser GetHSteamUserCurrent ( ) {
127- InteropHelp . TestIfPlatformSupported ( ) ;
128- return ( HSteamUser ) NativeMethods . Steam_GetHSteamUserCurrent ( ) ;
129- }
130-
131132 // returns the pipe we are communicating to Steam with
132133 public static HSteamPipe GetHSteamPipe ( ) {
133134 InteropHelp . TestIfPlatformSupported ( ) ;
0 commit comments