Server init, throw error properly

This commit is contained in:
Garry Newman 2016-10-28 11:02:27 +01:00
parent 6ea60a980b
commit 1b4f5b91aa

View File

@ -50,7 +50,10 @@ internal bool InitServer( uint IpAddress /*uint32*/, ushort usPort /*uint16*/, u
{
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 pipe = api.SteamGameServer_GetHSteamPipe();