Skip to content

Commit e1cfb2b

Browse files
committed
Fix emulator launching not working
1 parent 26b5046 commit e1cfb2b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

scenes/config/settings/EmulatorLaunchedPopup.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var pid := 0
44

55
func _process(delta):
66
if not visible: return
7-
if pid >= 0 or not OS.is_process_running(pid):
7+
if pid > 0 and not OS.is_process_running(pid):
88
# Request focus, as we might not have it
99
get_tree().root.move_to_foreground()
1010
_on_close_requested()

scenes/config/settings/emulator/EmulatorEditor.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ func _on_LoadPath_pressed():
7272

7373
func _on_run_emulator_pressed():
7474
var path : String = n_path.text
75+
if path.is_empty(): return
7576
var pid := OS.create_process(path, [])
7677
emulator_launched.emit(pid)

scenes/config/settings/emulator/RetroArchEmulatorEditor.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,6 @@ func _on_AddCore_pressed():
169169

170170
func _on_run_emulator_pressed():
171171
var path : String = n_path.text
172+
if path.is_empty(): return
172173
var pid := OS.create_process(path, [])
173174
emulator_launched.emit(pid)

0 commit comments

Comments
 (0)