From e041551f287a6fa5ee9ea79e9c71ae71c60cad06 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 6d56e15e6f..1eeb251745 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -195,6 +195,11 @@ extern "C" SDL_AppResult SDL_AppInit(void **appstate, 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);