diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-05 09:38:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 09:38:13 +0200 |
commit | 44ea7ed58353fd800493f5ad6ed99f1a121194f5 (patch) | |
tree | 6b0dc0bd0a1d58284647ad42b5647f25d4a78898 /platform | |
parent | 42a0148f1799b82cc4b07de6ca5a1e66d6a76be2 (diff) | |
parent | 4a58c0487ad687830fd5ddee2cf8191759432845 (diff) |
Merge pull request #26674 from hunte922/master
Hide command prompt launched by OS.execute
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index e535f6a148..0a9cfc0214 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -2586,7 +2586,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments, modstr.resize(cmdline.size()); for (int i = 0; i < cmdline.size(); i++) modstr.write[i] = cmdline[i]; - int ret = CreateProcessW(NULL, modstr.ptrw(), NULL, NULL, 0, NORMAL_PRIORITY_CLASS, NULL, NULL, si_w, &pi.pi); + int ret = CreateProcessW(NULL, modstr.ptrw(), NULL, NULL, 0, NORMAL_PRIORITY_CLASS & CREATE_NO_WINDOW, NULL, NULL, si_w, &pi.pi); ERR_FAIL_COND_V(ret == 0, ERR_CANT_FORK); if (p_blocking) { |