Devcb port tags need to be relative, not absolute, like other devcb tags.

This commit is contained in:
Aaron Giles 2012-02-25 19:15:32 +00:00
parent d4b608c178
commit 716a07a18e

View File

@ -82,9 +82,10 @@ public:
const input_port_config *devcb_resolver::resolve_port(const char *tag, device_t &current)
{
const input_port_config *result = current.machine().port(tag);
astring fullname;
const input_port_config *result = current.machine().port(current.siblingtag(fullname, tag));
if (result == NULL)
throw emu_fatalerror("Unable to find input port '%s' (requested by %s '%s')", tag, current.name(), current.tag());
throw emu_fatalerror("Unable to find input port '%s' (requested by %s '%s')", fullname.cstr(), current.name(), current.tag());
return result;
}