diff options
author | 2016-06-08 08:10:55 +1000 | |
---|---|---|
committer | 2016-06-08 08:10:55 +1000 | |
commit | 56bd36c5ef3960874628bc08cbfcedf4c6057a19 (patch) | |
tree | 3cce04b8c27b773befde51785210bc83673f9fd0 /src/frontend/mame/cheat.cpp | |
parent | bf281b3cad1d05c6ef863fa179d3d6ab442a163c (diff) |
Major refactoring of debugger core [Ryan Holtz]
* Eliminate globals/file statics
* Remove lots of stuff from global scope
* Use std::function for custom command registration
* Eliminate some trampolines
* Build fixes from Vas Crabb and balr0g
Diffstat (limited to 'src/frontend/mame/cheat.cpp')
-rw-r--r-- | src/frontend/mame/cheat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/cheat.cpp b/src/frontend/mame/cheat.cpp index a2d4eeadc1f..0a9bedbb44a 100644 --- a/src/frontend/mame/cheat.cpp +++ b/src/frontend/mame/cheat.cpp @@ -1078,10 +1078,10 @@ cheat_manager::cheat_manager(running_machine &machine) // we rely on the debugger expression callbacks; if the debugger isn't // enabled, we must jumpstart them manually if ((machine.debug_flags & DEBUG_FLAG_ENABLED) == 0) - debug_cpu_init(machine); + m_cpu = std::make_unique<debugger_cpu>(machine); // configure for memory access (shared with debugger) - debug_cpu_configure_memory(machine, m_symtable); + m_cpu->configure_memory(m_symtable); // load the cheats reload(); |