(MESS) megaduck: fixed loading of some carts from command line. nw.

This commit is contained in:
Fabio Priuli 2013-06-23 10:31:14 +00:00
parent 87a5630556
commit c9ae85650b
2 changed files with 12 additions and 0 deletions

View File

@ -602,6 +602,15 @@ const char * base_gb_cart_slot_device::get_default_card_software(const machine_c
}
const char * megaduck_cart_slot_device::get_default_card_software(const machine_config &config, emu_options &options)
{
if (open_image_file(options))
return "rom";
return software_get_default_slot(config, options, this, "rom");
}
/*-------------------------------------------------
read

View File

@ -178,6 +178,9 @@ public:
virtual bool call_load();
virtual const char *image_interface() const { return "megaduck_cart"; }
virtual const char *file_extensions() const { return "bin"; }
// slot interface overrides
virtual const char * get_default_card_software(const machine_config &config, emu_options &options);
};