more logging stuff
This commit is contained in:
@@ -41,6 +41,9 @@ void Log(ELogType logType, const char* file, uint32_t line, const char* format,
|
||||
|
||||
bx::strCopy(&History.LogBuffer[History.WriteIdx * LogInternal::MaxLineSize], LogInternal::MaxLineSize, OutBuffer);
|
||||
History.WriteTime[History.WriteIdx] = bx::getHPCounter();
|
||||
bx::strCopy(&History.FileBuffer[History.WriteIdx * LogInternal::MaxLineSize], LogInternal::MaxLineSize, file);
|
||||
History.LineBuffer[History.WriteIdx] = line;
|
||||
|
||||
++History.WriteIdx;
|
||||
if (History.WriteIdx >= LogInternal::LogHistorySize) History.WriteIdx = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user