Start working on a better shell mechanism for Windows

It uses a Perl script to keep a bash session open, which attaches to a
port the game keeps open. This avoids having to start a new Git bash for
each command, improving the execution speed by a factor of 3-4.
This commit is contained in:
blinry 2021-02-23 13:06:58 +01:00
parent 2a82b617be
commit 53c249d059
8 changed files with 145 additions and 15 deletions

View file

@ -35,6 +35,9 @@ func exec(command, args=[], crash_on_fail=true):
return {"output": output, "exit_code": exit_code}
func exec_async(command, args=[]):
OS.execute(command, args, false)
# Return the contents of a file. If no fallback_string is provided, crash when
# the file doesn't exist.
func read_file(path, fallback_string=null):