summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw/glfw.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2020-11-28 17:57:10 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-01 02:41:09 +0100
commitb8d3d8f5e460db06d9475a39c0bfb8fc733be872 (patch)
tree93d6d6d9f0f35515b52a97c780b939936c7def77 /src/skel/glfw/glfw.cpp
parentsome nasty FIX_BUGS for SLIDE_OBJECT (diff)
downloadre3-b8d3d8f5e460db06d9475a39c0bfb8fc733be872.tar
re3-b8d3d8f5e460db06d9475a39c0bfb8fc733be872.tar.gz
re3-b8d3d8f5e460db06d9475a39c0bfb8fc733be872.tar.bz2
re3-b8d3d8f5e460db06d9475a39c0bfb8fc733be872.tar.lz
re3-b8d3d8f5e460db06d9475a39c0bfb8fc733be872.tar.xz
re3-b8d3d8f5e460db06d9475a39c0bfb8fc733be872.tar.zst
re3-b8d3d8f5e460db06d9475a39c0bfb8fc733be872.zip
Diffstat (limited to 'src/skel/glfw/glfw.cpp')
-rw-r--r--src/skel/glfw/glfw.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp
index cac487b1..bc213c78 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -1479,12 +1479,14 @@ WinMain(HINSTANCE instance,
RwChar** argv;
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
-#if 1
- // TODO: make this an option somewhere
- AllocConsole();
- freopen("CONIN$", "r", stdin);
- freopen("CONOUT$", "w", stdout);
- freopen("CONOUT$", "w", stderr);
+#ifndef MASTER
+ if (strstr(cmdLine, "-console"))
+ {
+ AllocConsole();
+ freopen("CONIN$", "r", stdin);
+ freopen("CONOUT$", "w", stdout);
+ freopen("CONOUT$", "w", stderr);
+ }
#endif
#else