Repository navigation
Commit 2a4b75f
committed
Fix output logging bug that broke games that run in a Windows console
Since 29f9677 the shim hands every game the shim's std handles with
STARTF_USESTDHANDLES, so console APIs fail in a console game. Absolum's
Console.Clear() threw IOException: Invalid handle and the game exited
before opening a window.
Without the flag, an inherited stdout still reaches a windowed game, and
a console game's new console replaces all three handles. A detected
console game also skips inheritance, matching Proton's steam.cpp.1 parent 86097bd commit 2a4b75f
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
| 1478 | + | |
1482 | 1479 | | |
1483 | | - | |
| 1480 | + | |
1484 | 1481 | | |
1485 | 1482 | | |
1486 | 1483 | | |
| |||
0 commit comments