mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
Devcb port tags need to be relative, not absolute, like other devcb tags.
This commit is contained in:
parent
d4b608c178
commit
716a07a18e
@ -82,9 +82,10 @@ public:
|
||||
|
||||
const input_port_config *devcb_resolver::resolve_port(const char *tag, device_t ¤t)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user