more logging stuff

This commit is contained in:
Asuro
2025-03-27 22:17:58 +01:00
parent 2ff08d7258
commit 90d4c3df1b
5 changed files with 59 additions and 3 deletions

View File

@@ -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;
}