mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
(MESS) megaduck: fixed loading of some carts from command line. nw.
This commit is contained in:
parent
87a5630556
commit
c9ae85650b
@ -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
|
read
|
||||||
|
@ -178,6 +178,9 @@ public:
|
|||||||
virtual bool call_load();
|
virtual bool call_load();
|
||||||
virtual const char *image_interface() const { return "megaduck_cart"; }
|
virtual const char *image_interface() const { return "megaduck_cart"; }
|
||||||
virtual const char *file_extensions() const { return "bin"; }
|
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user