mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +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;
|
||||
}
|
||||
|
||||
unsigned menu_common_type_is(const char *label, unsigned type)
|
||||
unsigned menu_type_is(const char *label, unsigned type)
|
||||
{
|
||||
if (
|
||||
!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);
|
||||
|
||||
unsigned menu_common_type_is(const char *label, unsigned type);
|
||||
unsigned menu_type_is(const char *label, unsigned type);
|
||||
|
||||
void apply_deferred_settings(void);
|
||||
|
||||
|
@ -351,7 +351,7 @@ int menu_entries_parse_list(file_list_t *list, file_list_t *menu_list,
|
||||
#endif
|
||||
|
||||
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)
|
||||
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)
|
||||
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 */
|
||||
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;
|
||||
else if (!strcmp(label, "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;
|
||||
else if (!strcmp(label, "shader_apply_changes"))
|
||||
cbs->action_ok = action_ok_shader_apply_changes;
|
||||
|
Loading…
Reference in New Issue
Block a user