From 78e155408ea78ac63a73567f306c652142a0f15f Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Sat, 16 Sep 2023 16:41:18 +0200 Subject: [PATCH] print passed args when launching; trim args --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index b681e89..d73048a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -264,9 +264,9 @@ fn update(game: &Game, dir: &Path, bonus_content: bool, force: bool) { } fn launch(file_path: &PathBuf, args: &str) { - println!("Launching {}...", file_path.display()); + println!("Launching {} {}", file_path.display(), args); std::process::Command::new(file_path) - .args(args.split(' ')) + .args(args.trim().split(' ')) .spawn() .expect("Failed to launch the game") .wait()