Debugger: Fixed LogStatic() calls not being inserted at the right position in the log file

This commit is contained in:
Souryo 2016-12-07 19:36:19 -05:00
parent cca14842a7
commit c7b8b56780

View File

@ -36,6 +36,10 @@ TraceLogger::~TraceLogger()
void TraceLogger::LogStatic(string log)
{
if(_instance && _instance->_options.ShowExtraInfo) {
//Flush current buffer
_instance->_outputFile << _instance->_outputBuffer;
_instance->_outputBuffer.clear();
_instance->_outputFile << " - [" << log << " - Cycle: " << std::to_string(CPU::GetCycleCount()) << "]";
}
}