summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-10-27 05:16:06 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-10-27 05:16:06 +0000
commit354eec3124fc79f572ef517d9022636dac93a558 (patch)
tree4204c2b6109a4bc49f05fc98e38fd02a8711957d /src/emu/machine.c
parente56b4c9c02b0b02476226b4ae23beab3f75d27f2 (diff)
C++-ified the cheat engine.
Diffstat (limited to 'src/emu/machine.c')
-rw-r--r--src/emu/machine.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/emu/machine.c b/src/emu/machine.c
index aeeed7d2a46..349c7241998 100644
--- a/src/emu/machine.c
+++ b/src/emu/machine.c
@@ -168,7 +168,6 @@ running_machine::running_machine(const machine_config &_config, osd_interface &o
input_data(NULL),
input_port_data(NULL),
ui_input_data(NULL),
- cheat_data(NULL),
debugcpu_data(NULL),
generic_machine_data(NULL),
generic_video_data(NULL),
@@ -191,6 +190,7 @@ running_machine::running_machine(const machine_config &_config, osd_interface &o
m_saveload_searchpath(NULL),
m_rand_seed(0x9d14abd7),
m_driver_device(NULL),
+ m_cheat(NULL),
m_render(NULL),
m_debug_view(NULL)
{
@@ -344,8 +344,7 @@ void running_machine::start()
schedule_load("auto");
// set up the cheat engine
- if (options_get_bool(&m_options, OPTION_CHEAT))
- cheat_init(this);
+ m_cheat = auto_alloc(this, cheat_manager(*this));
// disallow save state registrations starting here
state_save_allow_registration(this, false);