diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-03 04:40:22 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-03 04:40:22 +0200 |
commit | ed036df3ce0253fe639a441c22a58ecc0f9a116a (patch) | |
tree | eac84f761eb66a26521ec0a97031dd03d63939bd /src/skel/glfw | |
parent | reenabled script logging (diff) | |
download | re3-ed036df3ce0253fe639a441c22a58ecc0f9a116a.tar re3-ed036df3ce0253fe639a441c22a58ecc0f9a116a.tar.gz re3-ed036df3ce0253fe639a441c22a58ecc0f9a116a.tar.bz2 re3-ed036df3ce0253fe639a441c22a58ecc0f9a116a.tar.lz re3-ed036df3ce0253fe639a441c22a58ecc0f9a116a.tar.xz re3-ed036df3ce0253fe639a441c22a58ecc0f9a116a.tar.zst re3-ed036df3ce0253fe639a441c22a58ecc0f9a116a.zip |
Diffstat (limited to 'src/skel/glfw')
-rw-r--r-- | src/skel/glfw/glfw.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 0728f6c2..5e0c178c 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1366,6 +1366,12 @@ WinMain(HINSTANCE instance, RwInt32 argc; RwChar** argv; SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE); + + // TODO: make this an option somewhere + AllocConsole(); + freopen("CONIN$", "r", stdin); + freopen("CONOUT$", "w", stdout); + freopen("CONOUT$", "w", stderr); #else int main(int argc, char *argv[]) |