From 34d65594b305f050d02058eaa62dbe8bec4e05c3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 22 Jan 2015 23:20:29 +0100 Subject: [PATCH] Simplify some action_ok callback functions --- menu/menu_entries_cbs.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/menu/menu_entries_cbs.c b/menu/menu_entries_cbs.c index 5dfebc98a1..cffd2b6c0c 100644 --- a/menu/menu_entries_cbs.c +++ b/menu/menu_entries_cbs.c @@ -239,9 +239,7 @@ static int action_ok_shader_pass(const char *path, hack_shader_pass = type - MENU_SETTINGS_SHADER_PASS_0; return action_ok_file_generic( g_settings.video.shader_dir, - "video_shader_pass", - type, - idx); + label, type, idx); } static int action_ok_shader_parameters(const char *path, @@ -271,8 +269,7 @@ static int action_ok_shader_preset(const char *path, { return action_ok_file_generic( g_settings.video.shader_dir, - "video_shader_preset", - type, idx); + label, type, idx); } static int action_ok_push_content_list(const char *path,