Skip to content

Commit

Permalink
Fix passed argument to server startup process
Browse files Browse the repository at this point in the history
  • Loading branch information
Drombeys committed Apr 26, 2024
1 parent ff689b8 commit 0b75dcc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ImeSense.Launchers.Belarus/ViewModels/GameMenuViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ private void PlayGameImpl(MainWindowViewModel mainWindowViewModel)

if (IsStartServer) {
var launch = Core.Launcher.Launch(path: @"binaries\xrEngine.exe",
arguments: new List<string> {
@$"-start client(localhost/name={_userManager.UserSettings.Username})",
$"{_userManager.UserSettings.Locale}",
});
arguments: [
@$"-start client(localhost/name={_userManager.UserSettings.Username})"
]);

if (launch == null) {
return;
Expand All @@ -103,11 +102,11 @@ private void StartServerImpl()
ProcessHelper.KillAllXrEngine();

var launch = Core.Launcher.Launch(path: @"binaries\xrEngine.exe",
arguments: new List<string> {
arguments: [
"-dedicated",
"-i",
@"-start server(belarus_lobby/fmp/timelimit=60) client(localhost)",
});
]);

if (launch is null) {
return;
Expand Down

0 comments on commit 0b75dcc

Please sign in to comment.