diff options
author | Curt Coder <curtcoder@mail.com> | 2013-11-13 20:43:40 +0000 |
---|---|---|
committer | Curt Coder <curtcoder@mail.com> | 2013-11-13 20:43:40 +0000 |
commit | 9e1ebc7acddc0cb0b763f79e77e392ded3519b25 (patch) | |
tree | 2e7a2f711025ad58514a330969faec17626c4a15 /src/emu/mconfig.c | |
parent | f329b77e3533eaff46afdf60df1f5b15730204c6 (diff) |
Added a new macro MCFG_DEVICE_CARD_DEFAULT_BIOS, which can be used in the machine config to set the default BIOS for a slot card device. [Curt Coder]
Diffstat (limited to 'src/emu/mconfig.c')
-rw-r--r-- | src/emu/mconfig.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/mconfig.c b/src/emu/mconfig.c index fca991316f1..0bbb858ac38 100644 --- a/src/emu/mconfig.c +++ b/src/emu/mconfig.c @@ -65,6 +65,12 @@ machine_config::machine_config(const game_driver &gamedrv, emu_options &options) device_t *new_dev = device_add(&owner, intf[i].name, intf[i].devtype, slot->card_clock(selval)); found = true; + const char *default_bios = slot->card_default_bios(selval); + if (default_bios != NULL) + { + device_t::static_set_default_bios_tag(*new_dev, default_bios); + } + machine_config_constructor additions = slot->card_machine_config(selval); if (additions != NULL) (*additions)(const_cast<machine_config &>(*this), new_dev); |