Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit
Swift apple-silicond3dmetaldxmtdxvkgame-porting-toolkitgptkmac-gamingmacosmetalfxrosetta-2steamsteam-playwinewinecx
Stop steam shim from discarding output of launched games
Nathaniel Brown29f9677d2f0f
diff --git a/steam-shim/steam.cpp b/steam-shim/steam.cppindex e5033a5..0820f94 100644--- a/steam-shim/steam.cpp+++ b/steam-shim/steam.cpp@@ -1459,7 +1459,13 @@ run:si.wShowWindow = SW_HIDE;}- if (!CreateProcessW(NULL, cmdline, NULL, NULL, FALSE, flags, NULL, NULL, &si, &pi))+ /* Hand the child our own std handles, otherwise everything it prints is lost. */+ si.dwFlags |= STARTF_USESTDHANDLES;+ si.hStdInput = GetStdHandle(STD_INPUT_HANDLE);+ si.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);+ si.hStdError = GetStdHandle(STD_ERROR_HANDLE);++ if (!CreateProcessW(NULL, cmdline, NULL, NULL, TRUE, flags, NULL, NULL, &si, &pi)){WINE_ERR("Failed to create process %s: %u\n", wine_dbgstr_w(cmdline), GetLastError());return INVALID_HANDLE_VALUE;