Browse Source

engine: disable stdout output and flush on Windows, Wcon already does the job

pull/2/head
Alibek Omarov 3 years ago
parent
commit
2218126c75
  1. 4
      engine/common/sys_con.c

4
engine/common/sys_con.c

@ -261,8 +261,9 @@ static void Sys_PrintStdout( const char *logtime, const char *msg ) @@ -261,8 +261,9 @@ static void Sys_PrintStdout( const char *logtime, const char *msg )
void IOS_Log( const char * );
IOS_Log( buf );
#endif // TARGET_OS_IOS
#else // XASH_MOBILE_PLATFORM
#elif !XASH_WIN32 // Wcon does the job
Sys_PrintLogfile( STDOUT_FILENO, logtime, msg, XASH_COLORIZE_CONSOLE );
Sys_FlushStdout();
#endif
}
@ -281,7 +282,6 @@ void Sys_PrintLog( const char *pMsg ) @@ -281,7 +282,6 @@ void Sys_PrintLog( const char *pMsg )
// spew to stdout
Sys_PrintStdout( logtime, pMsg );
Sys_FlushStdout();
if( !s_ld.logfile )
{

Loading…
Cancel
Save