use status vs spawn/wait (#699)
This commit is contained in:
parent
cef70faf1e
commit
11d3e52779
@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user