From a5508e9cfa31e3cdcf5ce00100ec33fc0775d2ba Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Fri, 20 Sep 2024 00:50:11 +0200 Subject: [PATCH] download bonus content by default, add --skip-bonus --- README.md | 4 +++- src/main.rs | 5 +++++ src/structs.rs | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 45c3a45..a3acd1a 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,9 @@ - ```--skip-launcher-update``` - Skip updating the launcher - ```--bonus``` - - Download bonus content + - Download bonus content (default) +- ```--skip-bonus``` + - Don't download bonus content - ```--force```, ```-f``` - Force file hash recheck - ```--path```, ```-p``` diff --git a/src/main.rs b/src/main.rs index e5cb3ed..bc2dc23 100644 --- a/src/main.rs +++ b/src/main.rs @@ -581,6 +581,7 @@ async fn main() { println!(" --path/-p : Specify the game directory"); println!(" --update/-u: Update only, don't launch the game"); println!(" --bonus: Download bonus content"); + println!(" --skip-bonus: Don't download bonus content"); println!(" --force/-f: Force file hash recheck"); println!(" --pass : Pass arguments to the game"); println!(" --skip-launcher-update: Skip launcher self-update"); @@ -647,6 +648,10 @@ async fn main() { cfg.download_bonus_content = true; cfg.ask_bonus_content = false; arg_remove(&mut args, "--bonus"); + } else if arg_bool(&args, "--skip-bonus") { + cfg.download_bonus_content = false; + cfg.ask_bonus_content = false; + arg_remove(&mut args, "--skip-bonus") } if arg_bool(&args, "--force") || arg_bool(&args, "-f") { diff --git a/src/structs.rs b/src/structs.rs index 122e95b..ba18f76 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -53,8 +53,8 @@ impl Default for Config { Self { update_only: false, skip_self_update: false, - download_bonus_content: false, - ask_bonus_content: true, + download_bonus_content: true, + ask_bonus_content: false, force_update: false, args: String::default(), engine: String::default(),