mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
use existing console if available
This commit is contained in:
parent
fec6ed0964
commit
5cbb3f33f8
@ -323,8 +323,11 @@ static uint64_t frontend_win32_get_mem_used(void)
|
|||||||
static void frontend_win32_attach_console(void)
|
static void frontend_win32_attach_console(void)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
AllocConsole();
|
if (!AttachConsole(ATTACH_PARENT_PROCESS))
|
||||||
AttachConsole( GetCurrentProcessId()) ;
|
{
|
||||||
|
AllocConsole();
|
||||||
|
AttachConsole( GetCurrentProcessId()) ;
|
||||||
|
}
|
||||||
freopen( "CON", "w", stdout );
|
freopen( "CON", "w", stdout );
|
||||||
freopen( "CON", "w", stderr );
|
freopen( "CON", "w", stderr );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user