diff --git a/Facepunch.Steamworks/Client.cs b/Facepunch.Steamworks/Client.cs index f605d28..9bc66e3 100644 --- a/Facepunch.Steamworks/Client.cs +++ b/Facepunch.Steamworks/Client.cs @@ -198,11 +198,5 @@ 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; } } } diff --git a/Facepunch.Steamworks/Config.cs b/Facepunch.Steamworks/Config.cs new file mode 100644 index 0000000..7c5a1a9 --- /dev/null +++ b/Facepunch.Steamworks/Config.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Facepunch.Steamworks +{ + public static class Config + { + /// + /// Some platforms allow/need CallingConvention.ThisCall. If you're crashing with argument null + /// errors on certain platforms, try flipping this to true. + /// + /// I owe this logic to Riley Labrecque's hard work on Steamworks.net - I don't have the knowledge + /// or patience to find this shit on my own, so massive thanks to him. And also massive thanks to him + /// for releasing his shit open source under the MIT license so we can all learn and iterate. + /// + /// + public static bool UseThisCall { get; set; } + } +}