diff --git a/Torch/MySteamServiceWrapper.cs b/Torch/MySteamServiceWrapper.cs deleted file mode 100644 index c74995a..0000000 --- a/Torch/MySteamServiceWrapper.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Reflection; -using System.Windows.Data; -using VRage.GameServices; - -namespace Torch -{ - /// - /// Provides static accessor for MySteamService because Keen made it internal - /// - public static class MySteamServiceWrapper - { - private static readonly MethodInfo _getGameService; - - public static IMyGameService Static => (IMyGameService)_getGameService.Invoke(null, null); - - static MySteamServiceWrapper() - { - var type = Type.GetType("VRage.Steam.MySteamService, VRage.Steam"); - var prop = type.GetProperty("Static", BindingFlags.Static | BindingFlags.Public); - _getGameService = prop.GetGetMethod(); - } - - public static IMyGameService Init(bool dedicated, uint appId) - { - return (IMyGameService)Activator.CreateInstance(Type.GetType("VRage.Steam.MySteamService, VRage.Steam"), dedicated, appId); - } - } -} \ No newline at end of file