Skip to content

Fix Windows debug mode

Joni Savolainen requested to merge jonisavo/mkxp-z:fix-windows-console into dev

I mistakenly removed the call to ruby_sysinit on Windows in debug mode. This PR inserts it back in, and hopefully fixes debug mode for good by opening calling _open_osfhandle alongside freopen_s and not after initializing Ruby.

win-consoleutils.h has been split to win-consoleutils.h and win-consoleutils.cpp.

Edited by Joni Savolainen

Merge request reports