Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supply engine version CVar from launcher #199

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading