Config no longer needed

This commit is contained in:
Garry Newman 2019-06-25 12:14:15 +01:00
parent 4cef345d95
commit 016b86ce8e

View File

@ -1,47 +0,0 @@
using System;
using System.IO;
namespace Steamworks
{
public static class Config
{
static OsType _os;
public static OsType Os
{
get
{
if ( _os == OsType.None )
{
string windir = Environment.GetEnvironmentVariable( "windir" );
if ( !string.IsNullOrEmpty( windir ) && windir.Contains( @"\" ) && Directory.Exists( windir ) )
{
_os = OsType.Windows;
}
else if ( File.Exists( @"/System/Library/CoreServices/SystemVersion.plist" ) )
{
_os = OsType.Posix;
}
else if ( File.Exists( @"/proc/sys/kernel/ostype" ) )
{
_os = OsType.Posix;
}
else
{
throw new System.Exception( "Couldn't determine operating system" );
}
}
return _os;
}
set => _os = value;
}
}
public enum OsType
{
None,
Windows,
Posix,
}
}