mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
don't launch game if already running (#783)
This commit is contained in:
@@ -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