mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Print prefixed output in a single call to rdclogprint_int
* On android each call to rdclogprint_int goes onto its own line in the logcat output, so we need to combine the prefix externally.
This commit is contained in:
@@ -511,9 +511,10 @@ void rdclog_direct(time_t utcTime, uint32_t pid, LogType type, const char *proje
|
||||
|
||||
write_newline(nl);
|
||||
|
||||
if(!first)
|
||||
rdclogprint_int(type, prefixText.c_str(), prefixText.c_str());
|
||||
rdclogprint_int(type, base, noPrefixOutput);
|
||||
if(first)
|
||||
rdclogprint_int(type, base, noPrefixOutput);
|
||||
else
|
||||
rdclogprint_int(type, (prefixText + base).c_str(), noPrefixOutput);
|
||||
|
||||
// restore the characters
|
||||
nl[1] = backup[0];
|
||||
@@ -530,9 +531,10 @@ void rdclog_direct(time_t utcTime, uint32_t pid, LogType type, const char *proje
|
||||
// append final newline and write the last line
|
||||
write_newline(output);
|
||||
|
||||
if(!first)
|
||||
rdclogprint_int(type, prefixText.c_str(), prefixText.c_str());
|
||||
rdclogprint_int(type, base, noPrefixOutput);
|
||||
if(first)
|
||||
rdclogprint_int(type, base, noPrefixOutput);
|
||||
else
|
||||
rdclogprint_int(type, (prefixText + base).c_str(), noPrefixOutput);
|
||||
}
|
||||
|
||||
SAFE_DELETE_ARRAY(oversizedBuffer);
|
||||
|
||||
Reference in New Issue
Block a user