diff options
| author | 2018-01-07 22:20:14 +0100 | |
|---|---|---|
| committer | 2018-01-17 16:11:18 +0100 | |
| commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
| tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/emu/validity.cpp | |
| parent | 9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff) | |
API Change: Machine configs are now a method of the owner class, and the prototype is simplified [O. Galibert]
Beware, the device context does not follow in MCFG_FRAGMENT_ADD
anymore due to the prototype change. So creating a device then
configuring through a fragment doesn't work as-is. The simplest
solution is just to add a MCFG_DEVICE_MODIFY at the start of the
fragment with the correct tag.
Diffstat (limited to 'src/emu/validity.cpp')
| -rw-r--r-- | src/emu/validity.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/validity.cpp b/src/emu/validity.cpp index ff29b1b7442..2b6235f1a95 100644 --- a/src/emu/validity.cpp +++ b/src/emu/validity.cpp @@ -1950,9 +1950,9 @@ void validity_checker::validate_devices() const char *const def_bios = option.second->default_bios(); if (def_bios) device_t::static_set_default_bios_tag(*card, def_bios); - machine_config_constructor const additions = option.second->machine_config(); + auto additions = option.second->machine_config(); if (additions) - (*additions)(*m_current_config, card, card); + additions(card); for (device_slot_interface &subslot : slot_interface_iterator(*card)) { @@ -1965,9 +1965,9 @@ void validity_checker::validate_devices() const char *const sub_bios = suboption->default_bios(); if (sub_bios) device_t::static_set_default_bios_tag(*sub_card, sub_bios); - machine_config_constructor const sub_additions = suboption->machine_config(); + auto sub_additions = suboption->machine_config(); if (sub_additions) - (*sub_additions)(*m_current_config, sub_card, sub_card); + sub_additions(sub_card); } } } |
