summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorhoontee <5272529+hunte922@users.noreply.github.com>2019-03-05 16:11:08 -0600
committerRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-04 15:39:57 +0200
commit4a58c0487ad687830fd5ddee2cf8191759432845 (patch)
treeb1517413489975060bf83be5af8d7020c6e4343a /platform/windows
parent7b569e91c0c6b84965cad416b8e86dcfdacbcfc4 (diff)
Hide command prompt launched by OS.execute
Currently, the console appears when running OS.execute in an exported project, but not in the editor. This change prevents it from appearing in either. Only affects console applications.
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/os_windows.cpp2
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) {