From 2ce622d943df2c8acd9abb25951adb6fbfe7c48a Mon Sep 17 00:00:00 2001 From: lizzie Date: Wed, 25 Feb 2026 15:25:16 +0000 Subject: [PATCH] disable stdio buffering --- src/yuzu_cmd/yuzu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index ff6d36440c..d0bdd1078c 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -185,6 +185,11 @@ int main(int argc, char** argv) { freopen("CONOUT$", "wb", stderr); } #endif +#ifdef __OPENORBIS__ + // May prevent spurious crashes on swap handlers... + setvbuf(stdout, nullptr, _IONBF, 0); + setvbuf(stderr, nullptr, _IONBF, 0); +#endif Common::Log::Initialize(); Common::Log::SetColorConsoleBackendEnabled(true);