diff --git a/src/ui/gui.rs b/src/ui/gui.rs index 89239df..dc66403 100644 --- a/src/ui/gui.rs +++ b/src/ui/gui.rs @@ -227,7 +227,7 @@ fn controller_window( if dinput { command.arg("--use-dinput"); } - command.spawn().unwrap().wait().unwrap(); + command.status().unwrap(); let game_ui = ui::Ui::new(); update_input_profiles(&weak_app, &game_ui.config); }); @@ -360,12 +360,7 @@ pub fn run_rom( } } - command - .arg(file_path.to_str().unwrap()) - .spawn() - .unwrap() - .wait() - .unwrap(); + command.arg(file_path.to_str().unwrap()).status().unwrap(); let _ = std::fs::remove_file(cheats_path.to_str().unwrap());