mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
attach to console if present, spawn our own otherwise
This commit is contained in:
parent
4db257c104
commit
742e45c6eb
@ -345,13 +345,12 @@ static void frontend_win32_attach_console(void)
|
|||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifdef _WIN32_WINNT_WINXP
|
#ifdef _WIN32_WINNT_WINXP
|
||||||
if (!AttachConsole(ATTACH_PARENT_PROCESS))
|
AttachConsole(ATTACH_PARENT_PROCESS);
|
||||||
{
|
AllocConsole();
|
||||||
AllocConsole();
|
AttachConsole( GetCurrentProcessId()) ;
|
||||||
AttachConsole( GetCurrentProcessId()) ;
|
freopen( "CON", "w", stdout );
|
||||||
freopen( "CON", "w", stdout );
|
freopen( "CON", "w", stderr );
|
||||||
freopen( "CON", "w", stderr );
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user