From 59f1b0933733951823be8426b54d485a044cfa04 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Mon, 18 Sep 2023 12:26:47 +0200 Subject: [PATCH] set current_dir when launching --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index d73048a..c209c07 100644 --- a/src/main.rs +++ b/src/main.rs @@ -267,6 +267,7 @@ fn launch(file_path: &PathBuf, args: &str) { println!("Launching {} {}", file_path.display(), args); std::process::Command::new(file_path) .args(args.trim().split(' ')) + .current_dir(file_path.parent().unwrap()) .spawn() .expect("Failed to launch the game") .wait()