static internal IntPtr CreateInterface(string version) { if (Config.Os == OsType.Windows) { return(Win64.SteamInternal_CreateInterface(version)); } else if (Config.Os == OsType.Posix) { return(Posix.SteamInternal_CreateInterface(version)); } else { throw new System.Exception("this platform isn't supported"); } }
static internal IntPtr CreateInterface([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string version) { if (Config.Os == OsType.Windows) { return(Win64.SteamInternal_CreateInterface(version)); } else if (Config.Os == OsType.Posix) { return(Posix.SteamInternal_CreateInterface(version)); } else { throw new System.Exception("this platform isn't supported"); } }