mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
Moved UseThisCall to Config
This commit is contained in:
parent
b509b92b38
commit
01c8083869
@ -198,11 +198,5 @@ internal Action InstallCallback( int type, Delegate action )
|
|||||||
//return () => Valve.Steamworks.SteamAPI.UnregisterCallback( ptr );
|
//return () => Valve.Steamworks.SteamAPI.UnregisterCallback( ptr );
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Some platforms allow/need CallingConvention.ThisCall. If you're crashing with argument null
|
|
||||||
/// errors on certain platforms, try flipping this to true.
|
|
||||||
/// </summary>
|
|
||||||
public bool UseThisCall { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
21
Facepunch.Steamworks/Config.cs
Normal file
21
Facepunch.Steamworks/Config.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace Facepunch.Steamworks
|
||||||
|
{
|
||||||
|
public static class Config
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 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.
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public static bool UseThisCall { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user