(Menu) Set video_shader_pass label properly

This commit is contained in:
twinaphex 2014-09-03 02:22:32 +02:00
parent 865f812644
commit 94d765c409
3 changed files with 7 additions and 3 deletions

View File

@ -387,7 +387,9 @@ static int menu_common_shader_manager_setting_toggle(
{
case MENU_ACTION_OK:
menu_entries_push(driver.menu->menu_stack,
g_settings.video.shader_dir, "video_shader_preset",
g_settings.video.shader_dir,
(id == MENU_SETTINGS_SHADER_PRESET) ?
"video_shader_preset" : "video_shader_pass",
id, driver.menu->selection_ptr);
break;

View File

@ -60,8 +60,10 @@ static void get_title(const char *label, const char *dir,
else if (menu_type == MENU_SETTINGS_PRIVACY_OPTIONS)
strlcpy(title, "PRIVACY OPTIONS", sizeof_title);
#ifdef HAVE_SHADER_MANAGER
else if (menu_type_is == MENU_SETTINGS_SHADER_OPTIONS)
else if (!strcmp(label, "video_shader_pass"))
snprintf(title, sizeof_title, "SHADER %s", dir);
else if (!strcmp(label, "video_shader_preset"))
snprintf(title, sizeof_title, "SHADER PRESET %s", dir);
#endif
else if (menu_type == MENU_SETTINGS_PATH_OPTIONS ||
menu_type == MENU_SETTINGS_OPTIONS ||

View File

@ -706,7 +706,7 @@ int menu_parse_and_resolve(file_list_t *list, file_list_t *menu_list)
exts = "cfg";
else if (!strcmp(label, "video_shader_preset"))
exts = "cgp|glslp";
else if (menu_common_type_is(menu_type) == MENU_SETTINGS_SHADER_OPTIONS)
else if (!strcmp(label, "video_shader_pass"))
exts = "cg|glsl";
else if (!strcmp(label, "video_filter"))
exts = "filt";