(Windows) Fixed an issue where the console window was displayed when launching scripts.

This commit is contained in:
Leon Styhre 2021-07-16 17:17:19 +02:00
parent 4197ad7f6a
commit 82f81f89a6

View file

@ -143,6 +143,10 @@ int launchGameWindows(const std::wstring& cmd_utf16, bool runInBackground)
PROCESS_INFORMATION pi;
si.cb = sizeof(si);
// The console window is hidden by default when compiled with MSVC, but when
// using MinGW it has to be set explicitly.
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
bool processReturnValue = true;
DWORD errorCode = 0;