don't launch game if already running (#783)
This commit is contained in:
parent
8cb57811a6
commit
9e337295ca
@ -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