From 9b71273e72a8a93c3691d1c3fba596eb27b2f099 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 30 Nov 2014 02:35:08 +0100 Subject: [PATCH] Bind action OK callback for shader parameters to NULL --- menu/menu_entries_cbs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/menu/menu_entries_cbs.c b/menu/menu_entries_cbs.c index 1644837bec..e47e5c7342 100644 --- a/menu/menu_entries_cbs.c +++ b/menu/menu_entries_cbs.c @@ -2100,7 +2100,13 @@ static int menu_entries_cbs_init_bind_ok_first(menu_file_list_cbs_t *cbs, menu_list_get_last_stack(driver.menu->menu_list, NULL, &menu_label, NULL); - if (!strcmp(label, "savestate")) + if (type >= MENU_SETTINGS_SHADER_PARAMETER_0 + && type <= MENU_SETTINGS_SHADER_PARAMETER_LAST) + cbs->action_ok = NULL; + else if (type >= MENU_SETTINGS_SHADER_PRESET_PARAMETER_0 + && type <= MENU_SETTINGS_SHADER_PRESET_PARAMETER_LAST) + cbs->action_ok = NULL; + else if (!strcmp(label, "savestate")) cbs->action_ok = action_ok_save_state; else if (!strcmp(label, "loadstate")) cbs->action_ok = action_ok_load_state;