CPU: Add trace log to file support

This commit is contained in:
Connor McLaughlin
2019-11-04 00:55:07 +10:00
parent 9de9cf3be2
commit 4a6f283484
3 changed files with 49 additions and 0 deletions

View File

@ -376,7 +376,13 @@ void Bus::DoWriteEXP2(MemoryAccessSize size, u32 offset, u32 value)
if (value == '\n')
{
if (!m_tty_line_buffer.IsEmpty())
{
Log_InfoPrintf("TTY: %s", m_tty_line_buffer.GetCharArray());
#ifdef _DEBUG
if (CPU::LOG_EXECUTION)
CPU::WriteToExecutionLog("TTY: %s\n", m_tty_line_buffer.GetCharArray());
#endif
}
m_tty_line_buffer.Clear();
}
else