static internal IntPtr FindOrCreateGameServerInterface(int steamuser, string versionname)
 {
     if (Config.Os == OsType.Windows)
     {
         return(Win64.SteamInternal_FindOrCreateGameServerInterface(steamuser, versionname));
     }
     else if (Config.Os == OsType.Posix)
     {
         return(Posix.SteamInternal_FindOrCreateGameServerInterface(steamuser, versionname));
     }
     else
     {
         throw new System.Exception("this platform isn't supported");
     }
 }
Beispiel #2
0
 static internal IntPtr FindOrCreateGameServerInterface(int steamuser, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string versionname)
 {
     if (Config.Os == OsType.Windows)
     {
         return(Win64.SteamInternal_FindOrCreateGameServerInterface(steamuser, versionname));
     }
     else if (Config.Os == OsType.Posix)
     {
         return(Posix.SteamInternal_FindOrCreateGameServerInterface(steamuser, versionname));
     }
     else
     {
         throw new System.Exception("this platform isn't supported");
     }
 }