use status vs spawn/wait (#699)

This commit is contained in:
Logan McNaughton 2026-03-31 11:12:06 -06:00 committed by GitHub
parent cef70faf1e
commit 11d3e52779
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());