summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ssingles.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/ssingles.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/ssingles.c')
-rw-r--r--src/mame/drivers/ssingles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/ssingles.c b/src/mame/drivers/ssingles.c
index f932cfa6acf..9af828de095 100644
--- a/src/mame/drivers/ssingles.c
+++ b/src/mame/drivers/ssingles.c
@@ -288,7 +288,7 @@ static WRITE8_HANDLER(c001_w)
static CUSTOM_INPUT(controls_r)
{
int data = 7;
- switch(input_port_read(field->port->machine(), "EXTRA")) //multiplexed
+ switch(input_port_read(field->machine(), "EXTRA")) //multiplexed
{
case 0x01: data = 1; break;
case 0x02: data = 2; break;