Don't ask what client to launch if update is set
This commit is contained in:
parent
618227a484
commit
86b969fa26
@ -307,6 +307,11 @@ fn main() {
|
|||||||
for r in g.references.iter() {
|
for r in g.references.iter() {
|
||||||
if std::path::Path::new(r).exists() {
|
if std::path::Path::new(r).exists() {
|
||||||
if g.client.len() > 1 {
|
if g.client.len() > 1 {
|
||||||
|
if update_only {
|
||||||
|
game = String::from(g.client[0]);
|
||||||
|
break 'main;
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
setup_client_links(g, &std::env::current_dir().unwrap());
|
setup_client_links(g, &std::env::current_dir().unwrap());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user