mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
commit
8114ce70d2
@ -345,13 +345,12 @@ static void frontend_win32_attach_console(void)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#ifdef _WIN32_WINNT_WINXP
|
||||
if (!AttachConsole(ATTACH_PARENT_PROCESS))
|
||||
{
|
||||
AllocConsole();
|
||||
AttachConsole( GetCurrentProcessId()) ;
|
||||
freopen( "CON", "w", stdout );
|
||||
freopen( "CON", "w", stderr );
|
||||
}
|
||||
AttachConsole(ATTACH_PARENT_PROCESS);
|
||||
AllocConsole();
|
||||
AttachConsole( GetCurrentProcessId()) ;
|
||||
freopen( "CON", "w", stdout );
|
||||
freopen( "CON", "w", stderr );
|
||||
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ void verbosity_enable(void)
|
||||
{
|
||||
main_verbosity = true;
|
||||
#ifdef RARCH_INTERNAL
|
||||
if (!log_file)
|
||||
if (!log_file_initialized)
|
||||
frontend_driver_attach_console();
|
||||
#endif
|
||||
}
|
||||
@ -65,7 +65,7 @@ void verbosity_disable(void)
|
||||
{
|
||||
main_verbosity = false;
|
||||
#ifdef RARCH_INTERNAL
|
||||
if (!log_file)
|
||||
if (!log_file_initialized)
|
||||
frontend_driver_detach_console();
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user