From a68886cf5d7ece6457af97c242607ff76cfa1e89 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 15 Feb 2015 18:41:58 +0100 Subject: [PATCH] Add 'action_start' for video filter --- menu/menu_entries_cbs.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/menu/menu_entries_cbs.c b/menu/menu_entries_cbs.c index 36ed4c2b55..6e8f345ade 100644 --- a/menu/menu_entries_cbs.c +++ b/menu/menu_entries_cbs.c @@ -1889,6 +1889,14 @@ static int action_start_remap_file_load(unsigned type, const char *label, return 0; } +static int action_start_video_filter_file_load(unsigned type, const char *label, + unsigned action) +{ + g_settings.video.softfilter_plugin[0] = '\0'; + rarch_main_command(RARCH_CMD_REINIT); + return 0; +} + static int action_start_performance_counters_core(unsigned type, const char *label, unsigned action) { @@ -5281,6 +5289,8 @@ static void menu_entries_cbs_init_bind_start(menu_file_list_cbs_t *cbs, if (!strcmp(label, "remap_file_load")) cbs->action_start = action_start_remap_file_load; + if (!strcmp(label, "video_filter")) + cbs->action_start = action_start_video_filter_file_load; else if (!strcmp(label, "video_shader_pass")) cbs->action_start = action_start_shader_pass; else if (!strcmp(label, "video_shader_scale_pass"))