mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
Fix Wine crashing when launching via terminal (#501)
This commit is contained in:
parent
6ee63091de
commit
c94e350cdf
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ void console::setup() {
|
|||
|
||||
// count == 0 => not a console and not a file, assume it's closed
|
||||
// wine does something weird with /dev/null? not sure tbh but it's definitely up to no good
|
||||
if (count == 0 || path.ends_with("\\dev\\null")) {
|
||||
if ((count == 0 || path.ends_with("\\dev\\null")) && Mod::get()->getSettingValue<bool>("show-platform-console")) {
|
||||
s_outHandle = nullptr;
|
||||
CloseHandle(GetStdHandle(STD_OUTPUT_HANDLE));
|
||||
CloseHandle(GetStdHandle(STD_INPUT_HANDLE));
|
||||
|
|
Loading…
Reference in a new issue