Skip to content

Commit

Permalink
Supply engine version CVar from launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Dec 19, 2024
1 parent 38c4e65 commit 4874249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SS14.Launcher/Models/Connector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,16 @@ private async Task LaunchClientWrap(
// Pass build info to client. This is not critical to the client's function,
// it was added to aid client replay recording.

// No point reporting engine version: obviously the client already knows that.
BuildCVar("download_url", serverBuildInformation?.DownloadUrl);
BuildCVar("manifest_url", serverBuildInformation?.ManifestUrl);
BuildCVar("manifest_download_url", serverBuildInformation?.ManifestDownloadUrl);
BuildCVar("version", serverBuildInformation?.Version);
BuildCVar("fork_id", serverBuildInformation?.ForkId);
BuildCVar("hash", serverBuildInformation?.Hash);
BuildCVar("manifest_hash", serverBuildInformation?.ManifestHash);
// This overrides the clients engine_version cvar which gets used in client replay recordings.
// the only case where serverBuildInformation is running replays, in which case this cvar is not used on the client.
BuildCVar("engine_version", serverBuildInformation?.EngineVersion);

void BuildCVar(string name, string? value)
{
Expand Down

0 comments on commit 4874249

Please sign in to comment.