mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Fixes
This commit is contained in:
parent
b91b22a983
commit
6ef86c3cb8
@ -28,14 +28,14 @@ internal bool InitClient()
|
||||
{
|
||||
api = new SteamNative.SteamApi( (IntPtr) 1 );
|
||||
|
||||
if ( !api.SteamAPI_Init() )
|
||||
return false;
|
||||
|
||||
var user = api.SteamAPI_GetHSteamUser();
|
||||
var pipe = api.SteamAPI_GetHSteamPipe();
|
||||
if ( pipe == 0 )
|
||||
return false;
|
||||
|
||||
if ( !api.SteamAPI_Init() )
|
||||
return false;
|
||||
|
||||
FillInterfaces( user, pipe );
|
||||
|
||||
return true;
|
||||
|
@ -37,10 +37,10 @@ public Server( uint appId, uint IpAddress, ushort GamePort, ushort QueryPort, bo
|
||||
//
|
||||
// Set up warning hook callback
|
||||
//
|
||||
SteamAPIWarningMessageHook ptr = InternalOnWarning;
|
||||
var d = Marshal.GetFunctionPointerForDelegate( ptr );
|
||||
var rr = GCHandle.Alloc( d );
|
||||
native.utils.SetWarningMessageHook( d );
|
||||
// SteamAPIWarningMessageHook ptr = InternalOnWarning;
|
||||
// var d = Marshal.GetFunctionPointerForDelegate( ptr );
|
||||
// var rr = GCHandle.Alloc( d );
|
||||
// native.utils.SetWarningMessageHook( d );
|
||||
|
||||
//
|
||||
// Setup interfaces that client and server both have
|
||||
|
Loading…
Reference in New Issue
Block a user