diff options
| author | 2012-02-25 19:17:03 +0000 | |
|---|---|---|
| committer | 2012-02-25 19:17:03 +0000 | |
| commit | a3fa2781de41c7bdebaa715c824349a6876f27d4 (patch) | |
| tree | e4f2487672be264878ac0fd24e0f9e7e211c26a8 | |
| parent | 716a07a18ebcadb1d4fa3fcfb0324b8958c87f01 (diff) | |
Fatal error if a custom I/O port handler's device is not found.
| -rw-r--r-- | src/emu/ioport.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/ioport.c b/src/emu/ioport.c index 680e69a25d6..8e991760a75 100644 --- a/src/emu/ioport.c +++ b/src/emu/ioport.c @@ -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; } |
