diff --git a/frontend/menu/backend/menu_common_backend.c b/frontend/menu/backend/menu_common_backend.c index c5c54ee73e..b67a5b2f98 100644 --- a/frontend/menu/backend/menu_common_backend.c +++ b/frontend/menu/backend/menu_common_backend.c @@ -1850,7 +1850,7 @@ static int menu_action_ok(const char *dir, else if (!strcmp(menu_label, "video_shader_pass") && type == MENU_FILE_PLAIN) { - unsigned pass = (menu_type - MENU_SETTINGS_SHADER_0) / 3; + unsigned pass = (menu_type) / 3; fill_pathname_join(driver.menu->shader->pass[pass].source.path, dir, path, sizeof(driver.menu->shader->pass[pass].source.path)); diff --git a/frontend/menu/menu_common.h b/frontend/menu/menu_common.h index 1daab30d88..997615c99b 100644 --- a/frontend/menu/menu_common.h +++ b/frontend/menu/menu_common.h @@ -56,7 +56,8 @@ extern "C" { typedef enum { - MENU_FILE_PLAIN = 1, + MENU_FILE_NONE, + MENU_FILE_PLAIN, MENU_FILE_DIRECTORY, MENU_FILE_DEVICE, MENU_FILE_CORE,