summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cave.cpp
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-06-16 20:04:45 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-06-16 20:05:07 +0200
commita0cb3db8103d587d72d3676eb143a91d48d27782 (patch)
tree38d25b6b5efb64fdb4973dbab8762479dc869e1d /src/mame/drivers/cave.cpp
parenta0688e6fbb60a392d6b15e2a2e88a5e10d85e53a (diff)
coolpool, cave, foodf, itech32, slapstic, dvk_kcgd, dfruit, by17, by35: Remove machine().device, nw
Diffstat (limited to 'src/mame/drivers/cave.cpp')
-rw-r--r--src/mame/drivers/cave.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/drivers/cave.cpp b/src/mame/drivers/cave.cpp
index 6d6af041b75..a492890da74 100644
--- a/src/mame/drivers/cave.cpp
+++ b/src/mame/drivers/cave.cpp
@@ -2737,8 +2737,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( cave_state::sailormn_startup )
MACHINE_RESET_MEMBER(cave_state,sailormn)
{
- timer_device *startup = machine().device<timer_device>("startup");
- startup->adjust(attotime::from_usec(1000), 0, attotime::zero);
+ m_startup->adjust(attotime::from_usec(1000), 0, attotime::zero);
MACHINE_RESET_CALL_MEMBER(cave);
}
@@ -2750,7 +2749,7 @@ MACHINE_CONFIG_START(cave_state::sailormn)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
// could be a wachdog, but if it is then our watchdog address is incorrect as there are periods where the game doesn't write it.
- MCFG_TIMER_DRIVER_ADD("startup", cave_state, sailormn_startup)
+ MCFG_TIMER_DRIVER_ADD(m_startup, cave_state, sailormn_startup)
MCFG_DEVICE_ADD("audiocpu", Z80, 8_MHz_XTAL) // Bidirectional Communication
MCFG_DEVICE_PROGRAM_MAP(sailormn_sound_map)