Skip to content

Commit

Permalink
download bonus content by default, add --skip-bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
mxve committed Sep 19, 2024
1 parent 63773ca commit a5508e9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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```
Expand Down
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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") {
Expand Down
4 changes: 2 additions & 2 deletions src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit a5508e9

Please sign in to comment.