mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
Added back logging
This commit is contained in:
@@ -202,7 +202,7 @@ Future<bool> watchProcess(int pid) async {
|
|||||||
return await completer.future;
|
return await completer.future;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> createRebootArgs(String username, String password, bool host, GameServerType hostType, bool log, String additionalArgs) {
|
List<String> createRebootArgs(String username, String password, bool host, GameServerType hostType, String additionalArgs) {
|
||||||
if(password.isEmpty) {
|
if(password.isEmpty) {
|
||||||
username = '${_parseUsername(username, host)}@projectreboot.dev';
|
username = '${_parseUsername(username, host)}@projectreboot.dev';
|
||||||
}
|
}
|
||||||
@@ -223,14 +223,11 @@ List<String> createRebootArgs(String username, String password, bool host, GameS
|
|||||||
"-AUTH_TYPE=epic"
|
"-AUTH_TYPE=epic"
|
||||||
];
|
];
|
||||||
|
|
||||||
if(log) {
|
|
||||||
args.add("-log");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(host) {
|
if(host) {
|
||||||
args.addAll([
|
args.addAll([
|
||||||
"-nosplash",
|
"-nosplash",
|
||||||
"-nosound"
|
"-nosound",
|
||||||
|
"-log"
|
||||||
]);
|
]);
|
||||||
if(hostType == GameServerType.headless){
|
if(hostType == GameServerType.headless){
|
||||||
args.add("-nullrhi");
|
args.add("-nullrhi");
|
||||||
|
|||||||
@@ -239,7 +239,6 @@ class _LaunchButtonState extends State<LaunchButton> {
|
|||||||
_gameController.password.text,
|
_gameController.password.text,
|
||||||
host,
|
host,
|
||||||
hostType,
|
hostType,
|
||||||
false,
|
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
log("[${host ? 'HOST' : 'GAME'}] Generated game args: ${gameArgs.join(" ")}");
|
log("[${host ? 'HOST' : 'GAME'}] Generated game args: ${gameArgs.join(" ")}");
|
||||||
|
|||||||
Reference in New Issue
Block a user