mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
Fatal error if a custom I/O port handler's device is not found.
This commit is contained in:
parent
716a07a18e
commit
a3fa2781de
@ -2004,6 +2004,8 @@ static void init_port_state(running_machine &machine)
|
||||
{
|
||||
*readdevicetail = init_field_device_info(field, port->owner().subtag(devicetag, field->read_device));
|
||||
field->read.late_bind(*(*readdevicetail)->device);
|
||||
if (!field->read.has_object())
|
||||
fatalerror("Input port %s, unable to find valid device with tag '%s'", port->tag(), devicetag.cstr());
|
||||
readdevicetail = &(*readdevicetail)->next;
|
||||
}
|
||||
|
||||
@ -2012,6 +2014,8 @@ static void init_port_state(running_machine &machine)
|
||||
{
|
||||
*writedevicetail = init_field_device_info(field, port->owner().subtag(devicetag, field->write_device));
|
||||
field->write.late_bind(*(*writedevicetail)->device);
|
||||
if (!field->write.has_object())
|
||||
fatalerror("Input port %s, unable to find valid device with tag '%s'", port->tag(), devicetag.cstr());
|
||||
writedevicetail = &(*writedevicetail)->next;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user