mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Rename menu_common_type_is
This commit is contained in:
parent
f1ede10717
commit
4974e6848e
@ -499,7 +499,7 @@ int menu_iterate(retro_input_t input,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned menu_common_type_is(const char *label, unsigned type)
|
unsigned menu_type_is(const char *label, unsigned type)
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
!strcmp(label, "rgui_browser_directory") ||
|
!strcmp(label, "rgui_browser_directory") ||
|
||||||
|
@ -213,7 +213,7 @@ void menu_update_system_info(menu_handle_t *menu, bool *load_no_content);
|
|||||||
**/
|
**/
|
||||||
void menu_update_libretro_info(struct retro_system_info *info);
|
void menu_update_libretro_info(struct retro_system_info *info);
|
||||||
|
|
||||||
unsigned menu_common_type_is(const char *label, unsigned type);
|
unsigned menu_type_is(const char *label, unsigned type);
|
||||||
|
|
||||||
void apply_deferred_settings(void);
|
void apply_deferred_settings(void);
|
||||||
|
|
||||||
|
@ -351,7 +351,7 @@ int menu_entries_parse_list(file_list_t *list, file_list_t *menu_list,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
path_is_compressed = path_is_compressed_file(dir);
|
path_is_compressed = path_is_compressed_file(dir);
|
||||||
push_dir = menu_common_type_is(label, type) == MENU_FILE_DIRECTORY;
|
push_dir = menu_type_is(label, type) == MENU_FILE_DIRECTORY;
|
||||||
|
|
||||||
if (path_is_compressed)
|
if (path_is_compressed)
|
||||||
str_list = compressed_file_list_new(dir,exts);
|
str_list = compressed_file_list_new(dir,exts);
|
||||||
|
@ -2423,7 +2423,7 @@ static int deferred_push_default(void *data, void *userdata,
|
|||||||
if (!list || !menu_list)
|
if (!list || !menu_list)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (menu_common_type_is(label, type) == MENU_FILE_DIRECTORY)
|
if (menu_type_is(label, type) == MENU_FILE_DIRECTORY)
|
||||||
exts = ""; /* we ignore files anyway */
|
exts = ""; /* we ignore files anyway */
|
||||||
else if (g_extern.menu.info.valid_extensions)
|
else if (g_extern.menu.info.valid_extensions)
|
||||||
{
|
{
|
||||||
@ -2663,7 +2663,7 @@ static void menu_entries_cbs_init_bind_ok(menu_file_list_cbs_t *cbs,
|
|||||||
cbs->action_ok = action_ok_push_content_list;
|
cbs->action_ok = action_ok_push_content_list;
|
||||||
else if (!strcmp(label, "history_list"))
|
else if (!strcmp(label, "history_list"))
|
||||||
cbs->action_ok = action_ok_push_history_list;
|
cbs->action_ok = action_ok_push_history_list;
|
||||||
else if (menu_common_type_is(label, type) == MENU_FILE_DIRECTORY)
|
else if (menu_type_is(label, type) == MENU_FILE_DIRECTORY)
|
||||||
cbs->action_ok = action_ok_push_path_list;
|
cbs->action_ok = action_ok_push_path_list;
|
||||||
else if (!strcmp(label, "shader_apply_changes"))
|
else if (!strcmp(label, "shader_apply_changes"))
|
||||||
cbs->action_ok = action_ok_shader_apply_changes;
|
cbs->action_ok = action_ok_shader_apply_changes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user