disable stdio buffering

This commit is contained in:
lizzie 2026-02-25 15:25:16 +00:00
parent bbf13e75db
commit ca7f12a455

View file

@ -186,6 +186,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);