Log emulation pause/unpause events

This commit is contained in:
Eladash 2021-09-07 09:27:23 +03:00 committed by Megamouse
parent dfbc49513d
commit 6a340afb8a

View File

@ -1434,6 +1434,10 @@ bool Emulator::Pause()
GetCallbacks().on_pause();
static atomic_t<u32> pause_mark = 0;
sys_log.success("Emulation is being paused... (mark=%u)", pause_mark++);
// Update pause start time
if (m_pause_start_time.exchange(start))
{
@ -1529,6 +1533,8 @@ void Emulator::Resume()
GetCallbacks().on_resume();
sys_log.success("Emulation has been resumed!");
if (g_cfg.misc.prevent_display_sleep)
{
disable_display_sleep();