Add run_async to shell, which should be more stable than the previous threading

This might fix the "random crash" problem?
This commit is contained in:
blinry 2020-11-02 13:13:04 +01:00
parent 53f60247f3
commit e220211140
4 changed files with 67 additions and 40 deletions

9
scenes/shell_command.gd Normal file
View file

@ -0,0 +1,9 @@
extends Node
class_name ShellCommand
signal done
var command
var output
var exit_code
var crash_on_fail = true