self restart

This commit is contained in:
2023-11-06 03:20:46 +01:00
parent 8cc1047367
commit f582cdd625
2 changed files with 22 additions and 8 deletions

View File

@@ -376,6 +376,7 @@ async fn main() {
setup_env();
let mut args: Vec<String> = env::args().collect();
let original_args = args.clone();
if arg_bool(&args, "--help") {
println!("CLI Args:");
@@ -428,7 +429,7 @@ async fn main() {
let mut cfg = config::load(install_path.join("alterware-launcher.json"));
if !arg_bool(&args, "--skip-launcher-update") && !cfg.skip_self_update {
self_update::run(cfg.update_only);
self_update::run(cfg.update_only, original_args);
} else {
arg_remove(&mut args, "--skip-launcher-update");
}