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

Launch arguments feature #30

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ private async Task StartServer(CancellationToken cancel)

"--config-file", Path.Combine(InstanceDir, "config.toml"),
"--data-dir", Path.Combine(InstanceDir, "data"),

$"{_instanceConfig.Arguments}"
};
var env = new List<(string, string)>();

Expand Down
5 changes: 5 additions & 0 deletions SS14.Watchdog/Configuration/InstanceConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ public sealed class InstanceConfiguration
? "bin/Robust.Server.exe"
: "bin/Robust.Server";

/// <summary>
/// User arguments to pass to the server process.
/// </summary>
public string Arguments { get; set; } = null!;
VasilisThePikachu marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// Make a heap dump if the server is killed due to timeout. Only supported on Linux.
/// </summary>
Expand Down
Loading