diff --git a/Plugins/Steamworks.NET/Steam.cs b/Plugins/Steamworks.NET/Steam.cs index 4e85a8c4..86b69652 100644 --- a/Plugins/Steamworks.NET/Steam.cs +++ b/Plugins/Steamworks.NET/Steam.cs @@ -158,7 +158,7 @@ public static bool Init(uint unIP, ushort usGamePort, ushort usQueryPort, EServe bool ret; using (var pchVersionString2 = new InteropHelp.UTF8StringHandle(pchVersionString)) { - ret = NativeMethods.SteamGameServer_Init(unIP, usGamePort, usQueryPort, eServerMode, pchVersionString2); + ret = NativeMethods.SteamInternal_GameServer_Init(unIP, 0, usGamePort, usQueryPort, eServerMode, pchVersionString2); } // Steamworks.NET specific: We initialize the SteamAPI Context like this for now, but we need to do it diff --git a/Plugins/Steamworks.NET/autogen/NativeMethods.cs b/Plugins/Steamworks.NET/autogen/NativeMethods.cs index ce622934..39ded328 100644 --- a/Plugins/Steamworks.NET/autogen/NativeMethods.cs +++ b/Plugins/Steamworks.NET/autogen/NativeMethods.cs @@ -135,10 +135,6 @@ internal static class NativeMethods { public static extern bool SteamAPI_ManualDispatch_GetAPICallResult(HSteamPipe hSteamPipe, SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, out bool pbFailed); #endregion #region steam_gameserver.h - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_Init", CallingConvention = CallingConvention.Cdecl)] - [return: MarshalAs(UnmanagedType.I1)] - public static extern bool SteamGameServer_Init(uint unIP, ushort usGamePort, ushort usQueryPort, EServerMode eServerMode, InteropHelp.UTF8StringHandle pchVersionString); - [DllImport(NativeLibraryName, EntryPoint = "SteamGameServer_Shutdown", CallingConvention = CallingConvention.Cdecl)] public static extern void SteamGameServer_Shutdown();