summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-02-25 19:15:32 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-02-25 19:15:32 +0000
commit716a07a18ebcadb1d4fa3fcfb0324b8958c87f01 (patch)
tree43446ac0302fc11ea28318d7ea60e64f779b7cca
parentd4b608c178371e223ef55382482c6bf686650a9d (diff)
Devcb port tags need to be relative, not absolute, like other devcb tags.
-rw-r--r--src/emu/devcb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/devcb.c b/src/emu/devcb.c
index 089dcd3388b..7d2f6ddb622 100644
--- a/src/emu/devcb.c
+++ b/src/emu/devcb.c
@@ -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;
}