disable stdio buffering

This commit is contained in:
lizzie 2026-02-25 15:25:16 +00:00
parent 3bf49a7592
commit 54f0445a87

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