godot-build-scripts
godot-build-scripts copied to clipboard
[Windows] Improve console wrapper script to handle stdin and child processes.
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".