Avoid empty resume output when using PPU debug option

This commit is contained in:
Eladash 2022-08-26 12:23:29 +03:00 committed by Megamouse
parent 3f02935844
commit 7baf959975
1 changed files with 5 additions and 2 deletions

View File

@ -2067,7 +2067,7 @@ void Emulator::Resume()
} }
// Print and reset debug data collected // Print and reset debug data collected
if (g_cfg.core.ppu_debug) if (g_cfg.core.ppu_decoder == ppu_decoder_type::_static && g_cfg.core.ppu_debug)
{ {
PPUDisAsm dis_asm(cpu_disasm_mode::dump, vm::g_sudo_addr); PPUDisAsm dis_asm(cpu_disasm_mode::dump, vm::g_sudo_addr);
@ -2092,7 +2092,10 @@ void Emulator::Resume()
} }
} }
ppu_log.notice("[RESUME] Dumping instruction stats:%s", dump); if (!dump.empty())
{
ppu_log.notice("[RESUME] Dumping instruction stats:%s", dump);
}
} }
// Try to resume // Try to resume