File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var pid := 0
4
4
5
5
func _process (delta ):
6
6
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 ):
8
8
# Request focus, as we might not have it
9
9
get_tree ().root .move_to_foreground ()
10
10
_on_close_requested ()
Original file line number Diff line number Diff line change @@ -72,5 +72,6 @@ func _on_LoadPath_pressed():
72
72
73
73
func _on_run_emulator_pressed ():
74
74
var path : String = n_path .text
75
+ if path .is_empty (): return
75
76
var pid := OS .create_process (path , [])
76
77
emulator_launched .emit (pid )
Original file line number Diff line number Diff line change @@ -169,5 +169,6 @@ func _on_AddCore_pressed():
169
169
170
170
func _on_run_emulator_pressed ():
171
171
var path : String = n_path .text
172
+ if path .is_empty (): return
172
173
var pid := OS .create_process (path , [])
173
174
emulator_launched .emit (pid )
You can’t perform that action at this time.
0 commit comments