From 2760e2ab1e06c829f59226d81b0ff53eb82fefc3 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:29:58 +0100 Subject: [PATCH] keep console open & exit process when game not found --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index d8e3b0a..c6ad688 100644 --- a/src/main.rs +++ b/src/main.rs @@ -159,6 +159,8 @@ async fn windows_launcher_install(games: &Vec>, master_url: &String) { println!( "No installed games found. Make sure to place the launcher in the game directory." ); + std::io::stdin().read_line(&mut String::new()).unwrap(); + std::process::exit(0); } }