Exception on 32bit

This commit is contained in:
Garry Newman 2019-04-13 18:49:35 +01:00
parent d6eb2c8041
commit cce25e6f77

View File

@ -12,6 +12,11 @@ public static class Steam
public static void Init( uint appid )
{
if ( IntPtr.Size != 8 )
{
throw new System.Exception( "Only 64bit processes are currently supported" );
}
System.Environment.SetEnvironmentVariable( "SteamAppId", appid.ToString() );
System.Environment.SetEnvironmentVariable( "SteamGameId", appid.ToString() );