mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +03:00
Server init, throw error properly
This commit is contained in:
parent
6ea60a980b
commit
1b4f5b91aa
@ -50,7 +50,10 @@ internal bool InitServer( uint IpAddress /*uint32*/, ushort usPort /*uint16*/, u
|
|||||||
{
|
{
|
||||||
api = new SteamNative.SteamApi( (IntPtr)1 );
|
api = new SteamNative.SteamApi( (IntPtr)1 );
|
||||||
|
|
||||||
api.SteamInternal_GameServer_Init( IpAddress, usPort, GamePort, QueryPort, eServerMode, pchVersionString );
|
if ( !api.SteamInternal_GameServer_Init( IpAddress, usPort, GamePort, QueryPort, eServerMode, pchVersionString ) )
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var user = api.SteamGameServer_GetHSteamUser();
|
var user = api.SteamGameServer_GetHSteamUser();
|
||||||
var pipe = api.SteamGameServer_GetHSteamPipe();
|
var pipe = api.SteamGameServer_GetHSteamPipe();
|
||||||
|
Loading…
Reference in New Issue
Block a user