diff options
author | 2010-01-06 17:30:05 +0000 | |
---|---|---|
committer | 2010-01-06 17:30:05 +0000 | |
commit | 8d88859471049f491531a52b01d60670dd864b99 (patch) | |
tree | db4ddb77774149f9aa850a400ac38324f2c076e8 /src/emu/ui.c | |
parent | 49b2d89ab2d259088260d40f64f3b4e0b1ce05f7 (diff) |
moved the fix for the crash when you toggle cheats inside cheat.c, to avoid duplicating the checks and looking up whether cheats are enabled.
Diffstat (limited to 'src/emu/ui.c')
-rw-r--r-- | src/emu/ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c index 5787f9ffeb6..04daa3c9c21 100644 --- a/src/emu/ui.c +++ b/src/emu/ui.c @@ -1238,8 +1238,8 @@ static UINT32 handler_ingame(running_machine *machine, UINT32 state) mame_pause(machine, !mame_is_paused(machine)); } - /* handle a toggle cheats request, but only if cheats are on */ - if (options_get_bool(mame_options(), OPTION_CHEAT) && ui_input_pressed(machine, IPT_UI_TOGGLE_CHEAT)) + /* handle a toggle cheats request */ + if (ui_input_pressed(machine, IPT_UI_TOGGLE_CHEAT)) cheat_set_global_enable(machine, !cheat_get_global_enable(machine)); /* toggle movie recording */ |