mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 19:14:15 +01:00
Merge pull request #846 from withmorten/ini
add -console cmdline arg instead of #if 0/1
This commit is contained in:
commit
4ec60676e7
@ -1453,12 +1453,14 @@ WinMain(HINSTANCE instance,
|
|||||||
RwChar** argv;
|
RwChar** argv;
|
||||||
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
||||||
|
|
||||||
#if 0
|
#ifndef MASTER
|
||||||
// TODO: make this an option somewhere
|
if (strstr(cmdLine, "-console"))
|
||||||
AllocConsole();
|
{
|
||||||
freopen("CONIN$", "r", stdin);
|
AllocConsole();
|
||||||
freopen("CONOUT$", "w", stdout);
|
freopen("CONIN$", "r", stdin);
|
||||||
freopen("CONOUT$", "w", stderr);
|
freopen("CONOUT$", "w", stdout);
|
||||||
|
freopen("CONOUT$", "w", stderr);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -2011,16 +2011,18 @@ WinMain(HINSTANCE instance,
|
|||||||
RwChar **argv;
|
RwChar **argv;
|
||||||
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
||||||
|
|
||||||
#ifdef USE_CUSTOM_ALLOCATOR
|
#ifndef MASTER
|
||||||
InitMemoryMgr();
|
if (strstr(cmdLine, "-console"))
|
||||||
|
{
|
||||||
|
AllocConsole();
|
||||||
|
freopen("CONIN$", "r", stdin);
|
||||||
|
freopen("CONOUT$", "w", stdout);
|
||||||
|
freopen("CONOUT$", "w", stderr);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 1
|
#ifdef USE_CUSTOM_ALLOCATOR
|
||||||
// TODO: make this an option somewhere
|
InitMemoryMgr();
|
||||||
AllocConsole();
|
|
||||||
freopen("CONIN$", "r", stdin);
|
|
||||||
freopen("CONOUT$", "w", stdout);
|
|
||||||
freopen("CONOUT$", "w", stderr);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user