summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/nes.cpp
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-05-28 20:14:49 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-05-28 20:15:14 +0200
commit349cb3cd64773ea37e0b6d931c15e7f5ec9df8c6 (patch)
tree8ec7c5746ed7d0b8200fd7bf0c355466908de291 /src/mame/machine/nes.cpp
parentce5cf7ae2c6e93786a15b2eea54a041e0ece7dc3 (diff)
n64, pc1251, model2, midyunit, konamigx, k054338: Remove machine().device lookups, nw
Diffstat (limited to 'src/mame/machine/nes.cpp')
-rw-r--r--src/mame/machine/nes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/nes.cpp b/src/mame/machine/nes.cpp
index 84dfffbb444..d5c03f161d3 100644
--- a/src/mame/machine/nes.cpp
+++ b/src/mame/machine/nes.cpp
@@ -185,7 +185,7 @@ WRITE8_MEMBER(nes_state::fc_in0_w)
void nes_state::init_famicom()
{
// setup alt input handlers for additional FC input devices
- address_space &space = machine().device<cpu_device>("maincpu")->space(AS_PROGRAM);
+ address_space &space = m_maincpu->space(AS_PROGRAM);
space.install_read_handler(0x4016, 0x4016, read8_delegate(FUNC(nes_state::fc_in0_r), this));
space.install_write_handler(0x4016, 0x4016, write8_delegate(FUNC(nes_state::fc_in0_w), this));
space.install_read_handler(0x4017, 0x4017, read8_delegate(FUNC(nes_state::fc_in1_r), this));