mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-31 09:15:13 +00:00
engine: common: enabled printing logs to stderr for psvita platform only in developer mode
This commit is contained in:
parent
575179dbf5
commit
48e199bfa1
@ -265,11 +265,19 @@ static void Sys_PrintStdout( const char *logtime, const char *msg )
|
|||||||
IOS_Log( buf );
|
IOS_Log( buf );
|
||||||
#endif // TARGET_OS_IOS
|
#endif // TARGET_OS_IOS
|
||||||
|
|
||||||
#if (XASH_NSWITCH && NSWITCH_DEBUG) || XASH_PSVITA // REMOVEME
|
#if XASH_NSWITCH && NSWITCH_DEBUG
|
||||||
// just spew it to stderr normally in debug mode
|
// just spew it to stderr normally in debug mode
|
||||||
fprintf( stderr, "%s %s", logtime, buf );
|
fprintf( stderr, "%s %s", logtime, buf );
|
||||||
#endif // XASH_NSWITCH && NSWITCH_DEBUG
|
#endif // XASH_NSWITCH && NSWITCH_DEBUG
|
||||||
|
|
||||||
|
#if XASH_PSVITA
|
||||||
|
// spew to stderr only in developer mode
|
||||||
|
if( host_developer.value )
|
||||||
|
{
|
||||||
|
fprintf( stderr, "%s %s", logtime, buf );
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif !XASH_WIN32 // Wcon does the job
|
#elif !XASH_WIN32 // Wcon does the job
|
||||||
Sys_PrintLogfile( STDOUT_FILENO, logtime, msg, XASH_COLORIZE_CONSOLE );
|
Sys_PrintLogfile( STDOUT_FILENO, logtime, msg, XASH_COLORIZE_CONSOLE );
|
||||||
Sys_FlushStdout();
|
Sys_FlushStdout();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user