mirror of
https://github.com/holub/mame
synced 2025-04-27 18:53:05 +03:00
Really fix -debug -cheat crash this time, nw
This commit is contained in:
parent
e97f55dd67
commit
90b6c12423
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user