From 86b969fa26fa9a7e2e087a15c81c236bf25e989d Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Fri, 18 Aug 2023 13:36:06 +0200 Subject: [PATCH] Don't ask what client to launch if update is set --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 43adc89..7f03f8c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -307,6 +307,11 @@ fn main() { for r in g.references.iter() { if std::path::Path::new(r).exists() { if g.client.len() > 1 { + if update_only { + game = String::from(g.client[0]); + break 'main; + } + #[cfg(windows)] setup_client_links(g, &std::env::current_dir().unwrap());