summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index 41ae0b698a1..c8559ee1fae 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -2535,6 +2535,12 @@ void debugger_commands::execute_cheatlist(int ref, const std::vector<std::string
u64 sizemask;
FILE *f = nullptr;
+ if (m_cheat.cpu[0] == 0)
+ {
+ m_console.printf("Use cheatinit before cheatlist\n");
+ return;
+ }
+
if (!validate_cpu_space_parameter(m_cheat.cpu, AS_PROGRAM, space))
return;