force "+set logfile 1" iw4x arg

This commit is contained in:
2024-07-03 03:54:50 +02:00
parent f354d001f8
commit db9e0d9203
3 changed files with 11 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -19,7 +19,7 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "alterware-launcher"
version = "0.6.14"
version = "0.6.15"
dependencies = [
"colored",
"futures-util",

View File

@@ -1,6 +1,6 @@
[package]
name = "alterware-launcher"
version = "0.6.14"
version = "0.6.15"
edition = "2021"
build = "res/build.rs"

View File

@@ -738,6 +738,15 @@ async fn main() {
}
}
if cfg.engine == "iw4" && !cfg.args.contains("+set logfile 1") {
cfg.args = format!("{} +set logfile 1", cfg.args);
config::save_value_s(
install_path.join("alterware-launcher.json"),
"args",
cfg.args.clone(),
);
}
if cfg.ask_bonus_content && !g.bonus.is_empty() {
println!("Download bonus content? (Y/n)");
let input = misc::stdin().to_ascii_lowercase();