From 47adb572ea234602fe37a3d7e5d19ab7ab4b9276 Mon Sep 17 00:00:00 2001 From: Alessandro Autiero Date: Sat, 15 Jun 2024 18:40:46 +0200 Subject: [PATCH] Added back logging --- common/lib/src/util/process.dart | 9 +++------ gui/lib/src/widget/game_start_button.dart | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/common/lib/src/util/process.dart b/common/lib/src/util/process.dart index 77fccb1..204c48e 100644 --- a/common/lib/src/util/process.dart +++ b/common/lib/src/util/process.dart @@ -202,7 +202,7 @@ Future watchProcess(int pid) async { return await completer.future; } -List createRebootArgs(String username, String password, bool host, GameServerType hostType, bool log, String additionalArgs) { +List createRebootArgs(String username, String password, bool host, GameServerType hostType, String additionalArgs) { if(password.isEmpty) { username = '${_parseUsername(username, host)}@projectreboot.dev'; } @@ -223,14 +223,11 @@ List createRebootArgs(String username, String password, bool host, GameS "-AUTH_TYPE=epic" ]; - if(log) { - args.add("-log"); - } - if(host) { args.addAll([ "-nosplash", - "-nosound" + "-nosound", + "-log" ]); if(hostType == GameServerType.headless){ args.add("-nullrhi"); diff --git a/gui/lib/src/widget/game_start_button.dart b/gui/lib/src/widget/game_start_button.dart index 27dedcb..9dd2d1c 100644 --- a/gui/lib/src/widget/game_start_button.dart +++ b/gui/lib/src/widget/game_start_button.dart @@ -239,7 +239,6 @@ class _LaunchButtonState extends State { _gameController.password.text, host, hostType, - false, "" ); log("[${host ? 'HOST' : 'GAME'}] Generated game args: ${gameArgs.join(" ")}");