diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-02 00:18:38 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-02 00:18:38 +0100 |
commit | c0ca3c7a3eb4a565111d789b3d9f5cc1f794a788 (patch) | |
tree | f6ffd5c74960bac9b0e900f1f3f775eec21947f9 /src/skel/win/win.cpp | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
parent | Remove ifndef GTA_PS2 around replays (diff) | |
download | re3-c0ca3c7a3eb4a565111d789b3d9f5cc1f794a788.tar re3-c0ca3c7a3eb4a565111d789b3d9f5cc1f794a788.tar.gz re3-c0ca3c7a3eb4a565111d789b3d9f5cc1f794a788.tar.bz2 re3-c0ca3c7a3eb4a565111d789b3d9f5cc1f794a788.tar.lz re3-c0ca3c7a3eb4a565111d789b3d9f5cc1f794a788.tar.xz re3-c0ca3c7a3eb4a565111d789b3d9f5cc1f794a788.tar.zst re3-c0ca3c7a3eb4a565111d789b3d9f5cc1f794a788.zip |
Diffstat (limited to '')
-rw-r--r-- | src/skel/win/win.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index 6d0c2d67..c16ea2a1 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -2011,16 +2011,18 @@ WinMain(HINSTANCE instance, RwChar **argv; SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE); -#ifdef USE_CUSTOM_ALLOCATOR - InitMemoryMgr(); +#ifndef MASTER + if (strstr(cmdLine, "-console")) + { + AllocConsole(); + freopen("CONIN$", "r", stdin); + freopen("CONOUT$", "w", stdout); + freopen("CONOUT$", "w", stderr); + } #endif -#if 1 - // TODO: make this an option somewhere - AllocConsole(); - freopen("CONIN$", "r", stdin); - freopen("CONOUT$", "w", stdout); - freopen("CONOUT$", "w", stderr); +#ifdef USE_CUSTOM_ALLOCATOR + InitMemoryMgr(); #endif /* |