diff options
author | hap <happppp@users.noreply.github.com> | 2022-11-01 18:14:40 +0100 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2022-11-01 18:14:40 +0100 |
commit | b527e43528869fe80f8bd2a3b0a3520b17948d8a (patch) | |
tree | fa6e217b46d3f5ec06d48084baf83feb5c70560a /src/emu | |
parent | 4e8a667e91a13c6193a816ad51f57770643d5d04 (diff) |
Revert "emu_timer: undo prev commit, add running() getter and change some enabled() calls to that"
This reverts commit 957cfaa53d8c44904b62372ed120ccb684afd08c.
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/schedule.cpp | 2 | ||||
-rw-r--r-- | src/emu/schedule.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/schedule.cpp b/src/emu/schedule.cpp index fac8b80ae90..bdba5a71d3d 100644 --- a/src/emu/schedule.cpp +++ b/src/emu/schedule.cpp @@ -152,7 +152,7 @@ void emu_timer::adjust(attotime start_delay, s32 param, const attotime &period) // set the start and expire times m_start = m_scheduler->time(); m_expire = m_start + start_delay; - m_enabled = true; + m_enabled = !m_expire.is_never(); m_period = period; // remove and re-insert the timer in its new order diff --git a/src/emu/schedule.h b/src/emu/schedule.h index df758f23994..338560594d9 100644 --- a/src/emu/schedule.h +++ b/src/emu/schedule.h @@ -50,7 +50,6 @@ public: void adjust(attotime start_delay, s32 param = 0, const attotime &periodicity = attotime::never) noexcept; // timing queries - bool running() const noexcept { return !m_expire.is_never(); } attotime elapsed() const noexcept; attotime remaining() const noexcept; attotime start() const noexcept { return m_start; } |