download bonus content by default, add --skip-bonus

This commit is contained in:
2024-09-20 00:50:11 +02:00
parent 63773caee7
commit a5508e9cfa
3 changed files with 10 additions and 3 deletions

View File

@@ -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```

View File

@@ -581,6 +581,7 @@ async fn main() {
println!(" --path/-p <path>: 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 <args>: 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") {

View File

@@ -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(),