mirror of
https://github.com/holub/mame
synced 2025-06-08 05:44:09 +03:00
Added more checks while doing listslots (nw)
This commit is contained in:
parent
438f8781de
commit
3fc01aab1b
@ -651,7 +651,7 @@ void cli_frontend::listslots(const char *gamename)
|
|||||||
|
|
||||||
// get the options and print them
|
// get the options and print them
|
||||||
const slot_interface* intf = slot->get_slot_interfaces();
|
const slot_interface* intf = slot->get_slot_interfaces();
|
||||||
for (int i = 0; intf[i].name != NULL; i++)
|
for (int i = 0; intf && intf[i].name != NULL; i++)
|
||||||
{
|
{
|
||||||
device_t *dev = (*intf[i].devtype)(drivlist.config(), "dummy", &drivlist.config().root_device(), 0);
|
device_t *dev = (*intf[i].devtype)(drivlist.config(), "dummy", &drivlist.config().root_device(), 0);
|
||||||
dev->config_complete();
|
dev->config_complete();
|
||||||
|
Loading…
Reference in New Issue
Block a user