static internal bool GameServer_Init(uint unIP, ushort usPort, ushort usGamePort, ushort usQueryPort, int eServerMode, string pchVersionString)
 {
     if (Config.Os == OsType.Windows)
     {
         return(Win64.SteamInternal_GameServer_Init(unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString));
     }
     else if (Config.Os == OsType.Posix)
     {
         return(Posix.SteamInternal_GameServer_Init(unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString));
     }
     else
     {
         throw new System.Exception("this platform isn't supported");
     }
 }
Esempio n. 2
0
 static internal bool GameServer_Init(uint unIP, ushort usPort, ushort usGamePort, ushort usQueryPort, int eServerMode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchVersionString)
 {
     if (Config.Os == OsType.Windows)
     {
         return(Win64.SteamInternal_GameServer_Init(unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString));
     }
     else if (Config.Os == OsType.Posix)
     {
         return(Posix.SteamInternal_GameServer_Init(unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString));
     }
     else
     {
         throw new System.Exception("this platform isn't supported");
     }
 }