set current_dir when launching
This commit is contained in:
parent
237fa8c16f
commit
59f1b09337
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user