summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/cheat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/cheat.cpp')
-rw-r--r--src/frontend/mame/cheat.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/frontend/mame/cheat.cpp b/src/frontend/mame/cheat.cpp
index d9afcdc95bf..534340782ed 100644
--- a/src/frontend/mame/cheat.cpp
+++ b/src/frontend/mame/cheat.cpp
@@ -80,6 +80,7 @@
#include "ui/menu.h"
#include "cheat.h"
#include "debug/debugcpu.h"
+#include "debugger.h"
#include <ctype.h>
@@ -1081,10 +1082,13 @@ cheat_manager::cheat_manager(running_machine &machine)
if ((machine.debug_flags & DEBUG_FLAG_ENABLED) == 0)
{
m_cpu = std::make_unique<debugger_cpu>(machine);
-
- // configure for memory access (shared with debugger)
m_cpu->configure_memory(m_symtable);
}
+ else
+ {
+ // configure for memory access (shared with debugger)
+ machine.debugger().cpu().configure_memory(m_symtable);
+ }
// load the cheats
reload();