From cce25e6f7703d1ecc3b7493d201e5a0f99a21a50 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Sat, 13 Apr 2019 18:49:35 +0100 Subject: [PATCH] Exception on 32bit --- Facepunch.Steamworks/Redux/Steam.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Facepunch.Steamworks/Redux/Steam.cs b/Facepunch.Steamworks/Redux/Steam.cs index 3ab5005..7cc40ad 100644 --- a/Facepunch.Steamworks/Redux/Steam.cs +++ b/Facepunch.Steamworks/Redux/Steam.cs @@ -12,6 +12,11 @@ namespace Steamworks 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() );