Debugger: Fixed LogStatic() calls not being inserted at the right position in the log file
This commit is contained in:
parent
cca14842a7
commit
c7b8b56780
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ TraceLogger::~TraceLogger()
|
||||||
void TraceLogger::LogStatic(string log)
|
void TraceLogger::LogStatic(string log)
|
||||||
{
|
{
|
||||||
if(_instance && _instance->_options.ShowExtraInfo) {
|
if(_instance && _instance->_options.ShowExtraInfo) {
|
||||||
|
//Flush current buffer
|
||||||
|
_instance->_outputFile << _instance->_outputBuffer;
|
||||||
|
_instance->_outputBuffer.clear();
|
||||||
|
|
||||||
_instance->_outputFile << " - [" << log << " - Cycle: " << std::to_string(CPU::GetCycleCount()) << "]";
|
_instance->_outputFile << " - [" << log << " - Cycle: " << std::to_string(CPU::GetCycleCount()) << "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue