summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/r2dtank.c
diff options
context:
space:
mode:
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
commitd5af6b6a9b6d660662de1debaec0fc09d177a49f (patch)
treeccd9745557b33a0cc437a39994168e05b7bc8c20 /src/mame/drivers/r2dtank.c
parent7940e28ae272806e57c6efca1f44930a83f58d89 (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/r2dtank.c')
-rw-r--r--src/mame/drivers/r2dtank.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/r2dtank.c b/src/mame/drivers/r2dtank.c
index 737cfbce2ed..7779afd08af 100644
--- a/src/mame/drivers/r2dtank.c
+++ b/src/mame/drivers/r2dtank.c
@@ -228,7 +228,7 @@ static WRITE8_DEVICE_HANDLER( ttl74123_output_changed )
static CUSTOM_INPUT( get_ttl74123_output )
{
- r2dtank_state *state = field->port->machine().driver_data<r2dtank_state>();
+ r2dtank_state *state = field->machine().driver_data<r2dtank_state>();
return state->m_ttl74123_output;
}