Release 1.9.7.0 - Summer Update 2025
This commit is contained in:
@@ -83,14 +83,24 @@ namespace Steamworks
|
||||
//
|
||||
// Get other interfaces
|
||||
//
|
||||
if ( !SteamInternal.GameServer_Init( ipaddress, 0, init.GamePort, init.QueryPort, (int)init.Mode, init.VersionString ) )
|
||||
var interfaceVersions = Helpers.BuildVersionString(
|
||||
ISteamGameServer.Version,
|
||||
ISteamUtils.Version,
|
||||
ISteamNetworking.Version,
|
||||
ISteamGameServerStats.Version,
|
||||
ISteamInventory.Version,
|
||||
ISteamUGC.Version,
|
||||
ISteamApps.Version,
|
||||
ISteamNetworkingUtils.Version,
|
||||
ISteamNetworkingSockets.Version );
|
||||
var result = SteamInternal.GameServer_Init( ipaddress, init.GamePort, init.QueryPort, (int)init.Mode, init.VersionString, interfaceVersions, out var error );
|
||||
if ( result != SteamAPIInitResult.OK )
|
||||
{
|
||||
throw new System.Exception( $"InitGameServer returned false ({ipaddress},{0},{init.GamePort},{init.QueryPort},{init.Mode},\"{init.VersionString}\")" );
|
||||
throw new System.Exception( $"InitGameServer({ipaddress},{init.GamePort},{init.QueryPort},{init.Mode},\"{init.VersionString}\") returned false - error: {error}" );
|
||||
}
|
||||
|
||||
//
|
||||
// Dispatch is responsible for pumping the
|
||||
// event loop.
|
||||
// Dispatch is responsible for pumping the event loop.
|
||||
//
|
||||
Dispatch.Init();
|
||||
Dispatch.ServerPipe = SteamGameServer.GetHSteamPipe();
|
||||
|
||||
Reference in New Issue
Block a user