summaryrefslogtreecommitdiffstatshomepage
path: root/src/ldplayer
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-01-17 09:26:29 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-01-17 09:26:29 +0000
commitd061ced59276808138b8a62ca99c6530d0b179bf (patch)
treee08630dd72dce81f385643006b35aa9a802e657b /src/ldplayer
parent14e2b9acf31db5fbc78a1ece0548130e4d7bed24 (diff)
Created new template class tagged_list which manages a simple list
along with a tagmap. Changed memory regions, input ports, and devices to use this class. For devices, converted typenext and classnext fields into methods which dynamically search for the next item. Changed a number of macros to use the features of the class, removing the need for a bunch of helper functions.
Diffstat (limited to 'src/ldplayer')
-rw-r--r--src/ldplayer/ldplayer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ldplayer/ldplayer.c b/src/ldplayer/ldplayer.c
index 2706b10adeb..2bc21c22b92 100644
--- a/src/ldplayer/ldplayer.c
+++ b/src/ldplayer/ldplayer.c
@@ -226,7 +226,7 @@ static void process_commands(const device_config *laserdisc)
static TIMER_CALLBACK( vsync_update )
{
- const device_config *laserdisc = device_list_first(&machine->config->devicelist, LASERDISC);
+ const device_config *laserdisc = machine->config->devicelist.first(LASERDISC);
int vblank_scanline;
attotime target;
@@ -249,7 +249,7 @@ static MACHINE_START( ldplayer )
static TIMER_CALLBACK( autoplay )
{
- const device_config *laserdisc = device_list_first(&machine->config->devicelist, LASERDISC);
+ const device_config *laserdisc = machine->config->devicelist.first(LASERDISC);
/* start playing */
(*execute_command)(laserdisc, CMD_PLAY);
@@ -322,7 +322,7 @@ static TIMER_CALLBACK( pr8210_bit_callback )
static MACHINE_START( pr8210 )
{
- const device_config *laserdisc = device_list_first(&machine->config->devicelist, LASERDISC);
+ const device_config *laserdisc = machine->config->devicelist.first(LASERDISC);
MACHINE_START_CALL(ldplayer);
pr8210_bit_timer = timer_alloc(machine, pr8210_bit_callback, (void *)laserdisc);
}