don't launch game if already running (#783)

This commit is contained in:
Logan McNaughton
2026-04-20 02:13:15 -06:00
committed by GitHub
parent 8cb57811a6
commit 9e337295ca
+3
View File
@@ -64,6 +64,9 @@ fn file_dropped(app: &AppWindow, controller_paths: &[Option<String>]) {
let path = path.clone();
let weak2 = weak.clone();
weak.upgrade_in_event_loop(move |handle| {
if handle.get_game_running() {
return;
}
save_settings(&handle, &controller_paths);
run_rom(