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");
     }
 }
Esempio n. 2
0
 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");
     }
 }