Skip to content

Commit

Permalink
keep console open & exit process when game not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mxve committed Feb 7, 2024
1 parent d44ae36 commit 2760e2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ async fn windows_launcher_install(games: &Vec<Game<'_>>, 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);
}
}

Expand Down

0 comments on commit 2760e2a

Please sign in to comment.