disable stdio buffering

This commit is contained in:
lizzie 2026-02-25 15:25:16 +00:00
parent 1eb481975f
commit 79e0f98a0c

View file

@ -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);