summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/chessmachine.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2022-10-25 17:44:39 +0200
committer hap <happppp@users.noreply.github.com>2022-10-25 17:44:53 +0200
commit957cfaa53d8c44904b62372ed120ccb684afd08c (patch)
treee21c56b3f74dc093eb75810e96b38cb0e226d40e /src/devices/machine/chessmachine.cpp
parentf727c63b169e6c5d23154447150e5548dcb1516a (diff)
emu_timer: undo prev commit, add running() getter and change some enabled() calls to that
Diffstat (limited to 'src/devices/machine/chessmachine.cpp')
-rw-r--r--src/devices/machine/chessmachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/machine/chessmachine.cpp b/src/devices/machine/chessmachine.cpp
index fa201f9b11e..1016cec2ec4 100644
--- a/src/devices/machine/chessmachine.cpp
+++ b/src/devices/machine/chessmachine.cpp
@@ -126,7 +126,7 @@ void chessmachine_device::install_bootrom(bool enable)
u32 chessmachine_device::disable_bootrom_r()
{
// disconnect bootrom from the bus after next opcode
- if (m_bootrom_enabled && !m_disable_bootrom->enabled() && !machine().side_effects_disabled())
+ if (m_bootrom_enabled && !m_disable_bootrom->running() && !machine().side_effects_disabled())
m_disable_bootrom->adjust(m_maincpu->cycles_to_attotime(5));
return 0;