diff options
author | 2012-04-22 05:07:46 +0000 | |
---|---|---|
committer | 2012-04-22 05:07:46 +0000 | |
commit | f3de08a9f84746a23d0fb784cf2ab36913764035 (patch) | |
tree | 26af9699a6a4856863c9ab5efabcd351257c6383 /src/emu/uimain.c | |
parent | 094ba4f2666ef9fba8e570e93bcafcad10ccaab2 (diff) |
Created ioport_manager and moved the port list to it.
Removed global port lookups, now all lookups must be
done through device_t::ioport().
Diffstat (limited to 'src/emu/uimain.c')
-rw-r--r-- | src/emu/uimain.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/uimain.c b/src/emu/uimain.c index ee9be7c26fb..b66e5c81ac3 100644 --- a/src/emu/uimain.c +++ b/src/emu/uimain.c @@ -116,7 +116,7 @@ void ui_menu_main::populate() int has_dips = false; astring menu_text; /* scan the input port array to see what options we need to enable */ - for (port = machine().m_portlist.first(); port != NULL; port = port->next()) + for (port = machine().ioport().first_port(); port != NULL; port = port->next()) for (field = port->fieldlist().first(); field != NULL; field = field->next()) { if (field->type == IPT_DIPSWITCH) @@ -651,7 +651,7 @@ void ui_menu_input_specific::populate() suborder[SEQ_TYPE_INCREMENT] = 2; /* iterate over the input ports and add menu items */ - for (port = machine().m_portlist.first(); port != NULL; port = port->next()) + for (port = machine().ioport().first_port(); port != NULL; port = port->next()) for (field = port->fieldlist().first(); field != NULL; field = field->next()) { const char *name = input_field_name(field); @@ -1020,7 +1020,7 @@ void ui_menu_settings::populate() diplist_tailptr = &diplist; /* loop over input ports and set up the current values */ - for (port = machine().m_portlist.first(); port != NULL; port = port->next()) + for (port = machine().ioport().first_port(); port != NULL; port = port->next()) for (field = port->fieldlist().first(); field != NULL; field = field->next()) if (field->type == type && input_condition_true(machine(), &field->condition, port->owner())) { @@ -1276,7 +1276,7 @@ void ui_menu_analog::populate() astring text; /* loop over input ports and add the items */ - for (port = machine().m_portlist.first(); port != NULL; port = port->next()) + for (port = machine().ioport().first_port(); port != NULL; port = port->next()) for (field = port->fieldlist().first(); field != NULL; field = field->next()) if (input_type_is_analog(field->type) && input_condition_true(machine(), &field->condition, port->owner())) { |