Merge pull request #442 from Bishbash777/master

Fix server discovery issue on main "Join Game" Screen
This commit is contained in:
Jimmacle
2021-04-25 09:09:23 -07:00
committed by GitHub

View File

@@ -164,14 +164,15 @@ namespace Torch
_log.Info("Initializing UGC services"); _log.Info("Initializing UGC services");
IMyGameService service; IMyGameService service;
IMyUGCService serviceInstance; IMyUGCService serviceInstance;
var aggregator = new MyServerDiscoveryAggregator();
if (TorchBase.Instance.Config.UgcServiceType == UGCServiceType.Steam) if (TorchBase.Instance.Config.UgcServiceType == UGCServiceType.Steam)
{ {
service = MySteamGameService.Create(dedicated, _appSteamId); service = MySteamGameService.Create(dedicated, _appSteamId);
serviceInstance = MySteamUgcService.Create(_appSteamId, service); serviceInstance = MySteamUgcService.Create(_appSteamId, service);
MySteamGameService.InitNetworking(dedicated, MySteamGameService.InitNetworking(dedicated,
service, service,
dedicated ? MyPerServerSettings.GameDSName : MyPerServerSettings.GameNameSafe, "Space Engineers",
(MyServerDiscoveryAggregator) MyGameService.ServerDiscovery); aggregator);
} }
else else
{ {