mirror of
https://github.com/Alee14/OpenHacknet.git
synced 2025-01-22 09:12:44 -05:00
7ce3487c21
- Fix compile error - Fix double casts
31 lines
No EOL
915 B
C#
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();
|
|
}
|
|
}
|
|
} |