mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 20:48:03 +03:00
Merge pull request #197 from clansfear/master
Resolved #174 - removed redundant check in InitClient to allow wrapper initialization in offline mode
This commit is contained in:
commit
6c4a83800a
@ -256,6 +256,13 @@ namespace Facepunch.Steamworks
|
||||
return board;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the current user's Steam client is connected and logged on to the Steam servers.
|
||||
/// If it's not then no real-time services provided by the Steamworks API will be enabled.
|
||||
/// The Steam client will automatically be trying to recreate the connection as often as possible.
|
||||
/// All of the API calls that rely on this will check internally.
|
||||
/// </summary>
|
||||
public bool IsLoggedOn => native.user.BLoggedOn();
|
||||
|
||||
/// <summary>
|
||||
/// True if we're subscribed/authorised to be running this app
|
||||
|
@ -60,14 +60,6 @@ namespace Facepunch.Steamworks.Interop
|
||||
return false;
|
||||
}
|
||||
|
||||
// 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() )
|
||||
{
|
||||
Console.Error.WriteLine( "InitClient: Not Logged On" );
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user