mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Menu) Set video_shader_pass label properly
This commit is contained in:
parent
865f812644
commit
94d765c409
@ -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;
|
||||
|
||||
|
@ -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 ||
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user