diff options
author | Aaron Giles <aaron@aarongiles.com> | 2011-05-10 22:20:27 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2011-05-10 22:20:27 +0000 |
commit | d5af6b6a9b6d660662de1debaec0fc09d177a49f (patch) | |
tree | ccd9745557b33a0cc437a39994168e05b7bc8c20 /src/mame/drivers/m10.c | |
parent | 7940e28ae272806e57c6efca1f44930a83f58d89 (diff) |
Switch input ports to use function-based constructors instead of tokens.
Remove the old tokenizing helpers. Add basic classes for ports, fields,
settings, and dip locations as a first step. These will be fully cleaned
up later. Added machine() method to field to hide all the necessary
indirection. Changed custom/changed handlers into generic read/write
handlers, and added wrappers to convert them to device read/write
lines. [Aaron Giles]
Diffstat (limited to 'src/mame/drivers/m10.c')
-rw-r--r-- | src/mame/drivers/m10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/m10.c b/src/mame/drivers/m10.c index 4362007c488..09ecb30d7fd 100644 --- a/src/mame/drivers/m10.c +++ b/src/mame/drivers/m10.c @@ -508,7 +508,7 @@ static READ8_HANDLER( m11_a700_r ) static INPUT_CHANGED( coin_inserted ) { - m10_state *state = field->port->machine().driver_data<m10_state>(); + m10_state *state = field->machine().driver_data<m10_state>(); /* coin insertion causes an NMI */ device_set_input_line(state->m_maincpu, INPUT_LINE_NMI, newval ? ASSERT_LINE : CLEAR_LINE); } |