OpenHacknet/PlatformAPISettings.cs
afffsdd 7ce3487c21 Clean up
- Fix compile error
 - Fix double casts
2015-10-27 23:26:44 -04:00

31 lines
No EOL
915 B
C#

using System;
using Steamworks;
namespace Hacknet
{
public static class PlatformAPISettings
{
public static string Report = "";
public static bool Running;
public static bool RemoteStorageRunning;
public static void InitPlatformAPI()
{
if (Settings.isConventionDemo)
return;
Running = true; // SteamAPI.Init();
if (!Running)
{
Report = "First Init Failed. ";
Console.WriteLine("Steam Init Failed!");
Running = SteamAPI.InitSafe();
Report = Report + " Second init Running = " + Running;
}
else
Report = "Steam API Running :" + Running;
if (!Running)
return;
RemoteStorageRunning = false; // SteamRemoteStorage.IsCloudEnabledForAccount();
}
}
}