mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 17:19:39 +00:00
Debugger: Fixed LogStatic() calls not being inserted at the right position in the log file
This commit is contained in:
parent
cca14842a7
commit
c7b8b56780
@ -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()) << "]";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user