mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-03 09:10:41 +03:00
Client fail to start if user not logged on
This commit is contained in:
parent
3d9c1406f7
commit
6ea60a980b
@ -31,12 +31,17 @@ namespace Facepunch.Steamworks.Interop
|
|||||||
if ( !api.SteamAPI_Init() )
|
if ( !api.SteamAPI_Init() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var user = api.SteamAPI_GetHSteamUser();
|
var huser = api.SteamAPI_GetHSteamUser();
|
||||||
var pipe = api.SteamAPI_GetHSteamPipe();
|
var hpipe = api.SteamAPI_GetHSteamPipe();
|
||||||
if ( pipe == 0 )
|
if ( hpipe == 0 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
FillInterfaces( user, pipe );
|
FillInterfaces( huser, hpipe );
|
||||||
|
|
||||||
|
// Ensure that the user has logged into Steam. This will always return true if the game is launched
|
||||||
|
// from Steam, but if Steam is at the login prompt when you run your game it will return false.
|
||||||
|
if ( !user.BLoggedOn() )
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user