Read telemetry names from running dedicated config; record Workshop 0.0.138
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -7,6 +7,14 @@ class ERR_TelemetryServerName
|
||||
string name = configured;
|
||||
name.TrimInPlace();
|
||||
if (name.IsEmpty())
|
||||
{
|
||||
BackendApi backend = GetGame().GetBackendApi();
|
||||
SCR_DSConfig dedicated = new SCR_DSConfig();
|
||||
if (backend && backend.GetRunningDSConfig(dedicated) && dedicated.game)
|
||||
name = dedicated.game.name;
|
||||
name.TrimInPlace();
|
||||
}
|
||||
if (name.IsEmpty())
|
||||
{
|
||||
ServerConfig config = ServerLobbyApi.GetServerConfig();
|
||||
if (config) name = config.GetName();
|
||||
|
||||
Reference in New Issue
Block a user