mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-15 10:29:38 +01:00
don't launch game if already running (#783)
This commit is contained in:
1 parent
8cb57811a6
commit
9e337295ca
1 file changed
+3
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user