mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
(Windows) Fixed an issue where the console window was displayed when launching scripts.
This commit is contained in:
parent
4197ad7f6a
commit
82f81f89a6
|
@ -143,6 +143,10 @@ int launchGameWindows(const std::wstring& cmd_utf16, bool runInBackground)
|
||||||
PROCESS_INFORMATION pi;
|
PROCESS_INFORMATION pi;
|
||||||
|
|
||||||
si.cb = sizeof(si);
|
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;
|
bool processReturnValue = true;
|
||||||
DWORD errorCode = 0;
|
DWORD errorCode = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue