1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Fix the rest of the plString::Format calls

This commit is contained in:
2014-05-28 18:49:50 -07:00
parent fb8c81b587
commit 5c6b6bbc7c
16 changed files with 64 additions and 59 deletions

View File

@ -715,21 +715,22 @@ bool plStatusLog::IPrintLineToFile( const char *line, uint32_t count )
}
if ( fFlags & kDebugOutput )
plString out_str = plString::FromUtf8(line, count) + "\n";
if (fFlags & kDebugOutput)
{
#if HS_BUILD_FOR_WIN32
#ifndef PLASMA_EXTERNAL_RELEASE
plString str = plString::Format( "%.*s\n", count, line );
OutputDebugString( str.c_str() );
OutputDebugString(out_str.c_str());
#endif
#else
fprintf( stderr, "%.*s\n", count, line );
fputs(str.c_str(), str);
#endif
}
if ( fFlags & kStdout )
if (fFlags & kStdout)
{
fprintf( stdout, "%.*s\n", count, line );
fputs(out_str.c_str(), stdout);
}
return ret;