godot-build-scripts icon indicating copy to clipboard operation
godot-build-scripts copied to clipboard

[Windows] Improve console wrapper script to handle stdin and child processes.

Open bruvzg opened this issue 3 years ago • 0 comments

Uses PowerShell Start-Process cmdlet to start and wait for the Godot editor process, which:

  • Correctly passes stdin input to the Godot process.
  • Unlike cmd, it waits for the all child processes as well.

Additional changes:

  • Passes command line arguments from the script (%*).
  • Fixes start if executable is not in the current working directory, by adding script path (%~dp0).
  • Set console title to "Godot Engine".

bruvzg avatar Jul 28 '22 08:07 bruvzg