SteamAPI_Init returns bool

This commit is contained in:
Garry Newman 2016-10-26 16:10:52 +01:00
parent 9922de378a
commit bb1980eb84

View File

@ -28,7 +28,8 @@ internal bool InitClient()
{
api = new SteamNative.SteamApi( (IntPtr) 1 );
api.SteamAPI_Init();
if ( !api.SteamAPI_Init() )
return false;
var user = api.SteamAPI_GetHSteamUser();
var pipe = api.SteamAPI_GetHSteamPipe();