mirror of
https://github.com/holub/mame
synced 2025-10-07 01:16:22 +03:00
Fix crashing where cheat enabled (nw)
This commit is contained in:
parent
65ab646965
commit
24a91a55fd
@ -1078,10 +1078,12 @@ cheat_manager::cheat_manager(running_machine &machine)
|
|||||||
// we rely on the debugger expression callbacks; if the debugger isn't
|
// we rely on the debugger expression callbacks; if the debugger isn't
|
||||||
// enabled, we must jumpstart them manually
|
// enabled, we must jumpstart them manually
|
||||||
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)
|
// configure for memory access (shared with debugger)
|
||||||
m_cpu->configure_memory(m_symtable);
|
m_cpu->configure_memory(m_symtable);
|
||||||
|
}
|
||||||
|
|
||||||
// load the cheats
|
// load the cheats
|
||||||
reload();
|
reload();
|
||||||
|
Loading…
Reference in New Issue
Block a user