diff options
| author | Luis Martinez <luismart104@gmail.com> | 2019-03-01 16:51:53 -0600 |
|---|---|---|
| committer | Luis Martinez <luismart104@gmail.com> | 2019-03-05 17:07:00 -0600 |
| commit | 9e465c9fd0a5771d870e3550958b63ebbe992ca7 (patch) | |
| tree | 9888eb1fab7c192e1f5d62a28afe93b3f5bafe35 /core/bind/core_bind.h | |
| parent | 7bad1706c2fe71aac6d02b5a445a3faeb1e44d76 (diff) | |
| download | redot-engine-9e465c9fd0a5771d870e3550958b63ebbe992ca7.tar.gz | |
Fixes stderr silence; adds missing quote from exe args(windows)
https://github.com/godotengine/godot/blob/8d117b214f2bcd14015532fdfbed9b3f059da0e6/core/bind/core_bind.cpp#L452
This function calls the bottom function
https://github.com/godotengine/godot/blob/8d117b214f2bcd14015532fdfbed9b3f059da0e6/drivers/unix/os_unix.cpp#L312
OS.execute doesn't send out a value to stderr, so stderr defaults to
false, which will invoke this bottom line and always silence stderr.
https://github.com/godotengine/godot/blob/8d117b214f2bcd14015532fdfbed9b3f059da0e6/drivers/unix/os_unix.cpp#L315
Some programs, such as FFmpeg, will print out to stderr with valuable
and vital information. This fixes stderr always being silenced, user can
now opt to have it be read as normal.
Diffstat (limited to 'core/bind/core_bind.h')
| -rw-r--r-- | core/bind/core_bind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h index f3bc4644d8..c47f8bd4fc 100644 --- a/core/bind/core_bind.h +++ b/core/bind/core_bind.h @@ -214,7 +214,7 @@ public: bool is_in_low_processor_usage_mode() const; String get_executable_path() const; - int execute(const String &p_path, const Vector<String> &p_arguments, bool p_blocking, Array p_output = Array()); + int execute(const String &p_path, const Vector<String> &p_arguments, bool p_blocking, Array p_output = Array(), bool p_read_stderr = false); Error kill(int p_pid); Error shell_open(String p_uri); |
