mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
download bonus content by default, add --skip-bonus
This commit is contained in:
@@ -129,7 +129,9 @@
|
|||||||
- ```--skip-launcher-update```
|
- ```--skip-launcher-update```
|
||||||
- Skip updating the launcher
|
- Skip updating the launcher
|
||||||
- ```--bonus```
|
- ```--bonus```
|
||||||
- Download bonus content
|
- Download bonus content (default)
|
||||||
|
- ```--skip-bonus```
|
||||||
|
- Don't download bonus content
|
||||||
- ```--force```, ```-f```
|
- ```--force```, ```-f```
|
||||||
- Force file hash recheck
|
- Force file hash recheck
|
||||||
- ```--path```, ```-p```
|
- ```--path```, ```-p```
|
||||||
|
|||||||
@@ -581,6 +581,7 @@ async fn main() {
|
|||||||
println!(" --path/-p <path>: Specify the game directory");
|
println!(" --path/-p <path>: Specify the game directory");
|
||||||
println!(" --update/-u: Update only, don't launch the game");
|
println!(" --update/-u: Update only, don't launch the game");
|
||||||
println!(" --bonus: Download bonus content");
|
println!(" --bonus: Download bonus content");
|
||||||
|
println!(" --skip-bonus: Don't download bonus content");
|
||||||
println!(" --force/-f: Force file hash recheck");
|
println!(" --force/-f: Force file hash recheck");
|
||||||
println!(" --pass <args>: Pass arguments to the game");
|
println!(" --pass <args>: Pass arguments to the game");
|
||||||
println!(" --skip-launcher-update: Skip launcher self-update");
|
println!(" --skip-launcher-update: Skip launcher self-update");
|
||||||
@@ -647,6 +648,10 @@ async fn main() {
|
|||||||
cfg.download_bonus_content = true;
|
cfg.download_bonus_content = true;
|
||||||
cfg.ask_bonus_content = false;
|
cfg.ask_bonus_content = false;
|
||||||
arg_remove(&mut args, "--bonus");
|
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") {
|
if arg_bool(&args, "--force") || arg_bool(&args, "-f") {
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ impl Default for Config {
|
|||||||
Self {
|
Self {
|
||||||
update_only: false,
|
update_only: false,
|
||||||
skip_self_update: false,
|
skip_self_update: false,
|
||||||
download_bonus_content: false,
|
download_bonus_content: true,
|
||||||
ask_bonus_content: true,
|
ask_bonus_content: false,
|
||||||
force_update: false,
|
force_update: false,
|
||||||
args: String::default(),
|
args: String::default(),
|
||||||
engine: String::default(),
|
engine: String::default(),
|
||||||
|
|||||||
Reference in New Issue
Block a user