From b2db9b53046f2d100f6c2c187bc99dec363bfa19 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Thu, 29 Sep 2016 15:25:19 +0100 Subject: [PATCH] Client.UseThisCall --- Facepunch.Steamworks/Client.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Facepunch.Steamworks/Client.cs b/Facepunch.Steamworks/Client.cs index 9bc66e3..f605d28 100644 --- a/Facepunch.Steamworks/Client.cs +++ b/Facepunch.Steamworks/Client.cs @@ -198,5 +198,11 @@ namespace Facepunch.Steamworks //return () => Valve.Steamworks.SteamAPI.UnregisterCallback( ptr ); return null; } + + /// + /// Some platforms allow/need CallingConvention.ThisCall. If you're crashing with argument null + /// errors on certain platforms, try flipping this to true. + /// + public bool UseThisCall { get; set; } } }