From 1a66b2ff1e782447f3c7e7713e85d7532522b2fa Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 16 Mar 2019 19:46:53 -0400 Subject: distate: Expose state_find_entry (nw) --- src/emu/debug/debugcmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/debug/debugcmd.cpp') diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 72f4becbdcc..66bc8578464 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -467,7 +467,7 @@ bool debugger_commands::validate_cpu_parameter(const char *param, device_t *&res { // real CPUs should have pcbase const device_state_interface *state; - if (exec.device().interface(state) && state->state_string(STATE_GENPCBASE) != "???" && index++ == cpunum) + if (exec.device().interface(state) && state->state_find_entry(STATE_GENPCBASE) != nullptr && index++ == cpunum) { result = &exec.device(); return true; -- cgit v1.2.3