mirror of
https://github.com/holub/mame
synced 2025-06-22 12:28:33 +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 "ui/menu.h"
|
||||||
#include "cheat.h"
|
#include "cheat.h"
|
||||||
#include "debug/debugcpu.h"
|
#include "debug/debugcpu.h"
|
||||||
|
#include "debugger.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
@ -1081,10 +1082,13 @@ cheat_manager::cheat_manager(running_machine &machine)
|
|||||||
if ((machine.debug_flags & DEBUG_FLAG_ENABLED) == 0)
|
if ((machine.debug_flags & DEBUG_FLAG_ENABLED) == 0)
|
||||||
{
|
{
|
||||||
m_cpu = std::make_unique<debugger_cpu>(machine);
|
m_cpu = std::make_unique<debugger_cpu>(machine);
|
||||||
|
|
||||||
// configure for memory access (shared with debugger)
|
|
||||||
m_cpu->configure_memory(m_symtable);
|
m_cpu->configure_memory(m_symtable);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// configure for memory access (shared with debugger)
|
||||||
|
machine.debugger().cpu().configure_memory(m_symtable);
|
||||||
|
}
|
||||||
|
|
||||||
// load the cheats
|
// load the cheats
|
||||||
reload();
|
reload();
|
||||||
|
Loading…
Reference in New Issue
Block a user