Merge pull request #26674 from hunte922/master
Hide command prompt launched by OS.execute
This commit is contained in:
commit
44ea7ed583
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user