From cbcdfa572a1530f778ea2ece04d534e75aff4da2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 23 Dec 2019 07:49:29 +0100 Subject: [PATCH] (Mobile) Should no longer crash when clicking on a cheat entry --- menu/cbs/menu_cbs_select.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/menu/cbs/menu_cbs_select.c b/menu/cbs/menu_cbs_select.c index 80b07aaca1..162bbdcc8f 100644 --- a/menu/cbs/menu_cbs_select.c +++ b/menu/cbs/menu_cbs_select.c @@ -122,12 +122,6 @@ static int action_select_core_setting(const char *path, const char *label, unsig return action_ok_core_option_dropdown_list(path, label, type, idx, 0); } -static int action_select_cheat(const char *path, const char *label, unsigned type, - size_t idx, size_t entry_idx) -{ - return action_right_cheat(type, label, true); -} - static int action_select_input_desc(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx) { @@ -178,12 +172,7 @@ static int action_select_netplay_connect_room(const char *path, static int menu_cbs_init_bind_select_compare_type( menu_file_list_cbs_t *cbs, unsigned type) { - if (type >= MENU_SETTINGS_CHEAT_BEGIN - && type <= MENU_SETTINGS_CHEAT_END) - { - BIND_ACTION_SELECT(cbs, action_select_cheat); - } - else if (type >= MENU_SETTINGS_INPUT_DESC_BEGIN + if (type >= MENU_SETTINGS_INPUT_DESC_BEGIN && type <= MENU_SETTINGS_INPUT_DESC_END) { BIND_ACTION_SELECT(cbs, action_select_input_desc);