From 0d642516235f4ba9df0e301f8505732ef2dc992f Mon Sep 17 00:00:00 2001 From: Alessandro Autiero Date: Sat, 15 Jun 2024 18:48:42 +0200 Subject: [PATCH] Reversed logging --- common/lib/src/util/process.dart | 9 ++++++--- gui/lib/src/widget/game_start_button.dart | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/common/lib/src/util/process.dart b/common/lib/src/util/process.dart index 204c48e..77fccb1 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, String additionalArgs) { +List createRebootArgs(String username, String password, bool host, GameServerType hostType, bool log, String additionalArgs) { if(password.isEmpty) { username = '${_parseUsername(username, host)}@projectreboot.dev'; } @@ -223,11 +223,14 @@ List createRebootArgs(String username, String password, bool host, GameS "-AUTH_TYPE=epic" ]; + if(log) { + args.add("-log"); + } + if(host) { args.addAll([ "-nosplash", - "-nosound", - "-log" + "-nosound" ]); 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 9dd2d1c..27dedcb 100644 --- a/gui/lib/src/widget/game_start_button.dart +++ b/gui/lib/src/widget/game_start_button.dart @@ -239,6 +239,7 @@ class _LaunchButtonState extends State { _gameController.password.text, host, hostType, + false, "" ); log("[${host ? 'HOST' : 'GAME'}] Generated game args: ${gameArgs.join(" ")}");