diff options
author | 2009-11-23 04:55:26 +0000 | |
---|---|---|
committer | 2009-11-23 04:55:26 +0000 | |
commit | 9072c7f9116996a41e9fac14a89677f9d8eb89f9 (patch) | |
tree | 26fceb4fb95f265850c578cb9fa880075b20730c /src/emu/ui.c | |
parent | 41be698d6e813b1018cb35be64254e53db8e8a21 (diff) |
Added new module tagmap which is a simple hashed string map.
Updated device and input port lists to use the tagmap for
tag searches. Also removed the whole "quark" thing from the
validity checker in favor of using the tagmaps.
Diffstat (limited to 'src/emu/ui.c')
-rw-r--r-- | src/emu/ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c index 0b402f76ab3..72b663f3172 100644 --- a/src/emu/ui.c +++ b/src/emu/ui.c @@ -1448,7 +1448,7 @@ static slider_state *slider_init(running_machine *machine) } /* add analog adjusters */ - for (port = machine->portconfig; port != NULL; port = port->next) + for (port = machine->portlist.head; port != NULL; port = port->next) for (field = port->fieldlist; field != NULL; field = field->next) if (field->type == IPT_ADJUSTER) { @@ -1513,7 +1513,7 @@ static slider_state *slider_init(running_machine *machine) tailptr = &(*tailptr)->next; } - for (device = device_list_first(machine->config->devicelist, LASERDISC); device != NULL; device = device_list_next(device, LASERDISC)) + for (device = device_list_first(&machine->config->devicelist, LASERDISC); device != NULL; device = device_list_next(device, LASERDISC)) { const laserdisc_config *config = (const laserdisc_config *)device->inline_config; if (config->overupdate != NULL) @@ -1556,7 +1556,7 @@ static slider_state *slider_init(running_machine *machine) #ifdef MAME_DEBUG /* add crosshair adjusters */ - for (port = machine->portconfig; port != NULL; port = port->next) + for (port = machine->portlist.head; port != NULL; port = port->next) for (field = port->fieldlist; field != NULL; field = field->next) if (field->crossaxis != CROSSHAIR_AXIS_NONE && field->player == 0) { @@ -1973,7 +1973,7 @@ static char *slider_get_screen_desc(const device_config *screen) static char *slider_get_laserdisc_desc(const device_config *laserdisc) { - int ldcount = device_list_items(laserdisc->machine->config->devicelist, LASERDISC); + int ldcount = device_list_items(&laserdisc->machine->config->devicelist, LASERDISC); static char descbuf[256]; if (ldcount > 1) |