mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
Rename menu_entries_push to menu_entries_add
This commit is contained in:
parent
f25581e88d
commit
7e7a1fa5f9
18
cheevos.c
18
cheevos.c
@ -2109,9 +2109,9 @@ static void cheevos_populate_menu(void *data)
|
||||
settings_t *settings = config_get_ptr();
|
||||
menu_displaylist_info_t *info = (menu_displaylist_info_t*)data;
|
||||
|
||||
menu_entries_push(info->list, "Unlocked Achievements:",
|
||||
menu_entries_add(info->list, "Unlocked Achievements:",
|
||||
"", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
menu_entries_push(info->list, "", "", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
menu_entries_add(info->list, "", "", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
|
||||
cheevo = cheevos_locals.core.cheevos;
|
||||
end = cheevos_locals.core.cheevos + cheevos_locals.core.count;
|
||||
@ -2119,7 +2119,7 @@ static void cheevos_populate_menu(void *data)
|
||||
for (i = 0; cheevo < end; i++, cheevo++)
|
||||
{
|
||||
if (!cheevo->active)
|
||||
menu_entries_push(info->list, cheevo->title,
|
||||
menu_entries_add(info->list, cheevo->title,
|
||||
cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
}
|
||||
|
||||
@ -2132,15 +2132,15 @@ static void cheevos_populate_menu(void *data)
|
||||
for (i = cheevos_locals.core.count; cheevo < end; i++, cheevo++)
|
||||
{
|
||||
if (!cheevo->active)
|
||||
menu_entries_push(info->list, cheevo->title,
|
||||
menu_entries_add(info->list, cheevo->title,
|
||||
cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
menu_entries_push(info->list, "", "", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
menu_entries_push(info->list, "Locked Achievements:", "",
|
||||
menu_entries_add(info->list, "", "", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
menu_entries_add(info->list, "Locked Achievements:", "",
|
||||
MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
menu_entries_push(info->list, "", "", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
menu_entries_add(info->list, "", "", MENU_SETTINGS_CHEEVOS_NONE, 0, 0);
|
||||
|
||||
cheevo = cheevos_locals.core.cheevos;
|
||||
end = cheevos_locals.core.cheevos + cheevos_locals.core.count;
|
||||
@ -2148,7 +2148,7 @@ static void cheevos_populate_menu(void *data)
|
||||
for (i = 0; cheevo < end; i++, cheevo++)
|
||||
{
|
||||
if (cheevo->active)
|
||||
menu_entries_push(info->list, cheevo->title,
|
||||
menu_entries_add(info->list, cheevo->title,
|
||||
cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
}
|
||||
|
||||
@ -2161,7 +2161,7 @@ static void cheevos_populate_menu(void *data)
|
||||
for (i = cheevos_locals.core.count; cheevo < end; i++, cheevo++)
|
||||
{
|
||||
if (cheevo->active)
|
||||
menu_entries_push(info->list, cheevo->title,
|
||||
menu_entries_add(info->list, cheevo->title,
|
||||
cheevo->description, MENU_SETTINGS_CHEEVOS_START + i, 0, 0);
|
||||
}
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ static int frontend_ctr_parse_drive_list(void *data)
|
||||
if (!list)
|
||||
return -1;
|
||||
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"sdmc:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
#endif
|
||||
|
||||
|
@ -636,9 +636,9 @@ static int frontend_darwin_parse_drive_list(void *data)
|
||||
|
||||
CFSearchPathForDirectoriesInDomains(CFDocumentDirectory, CFUserDomainMask, 1, home_dir_buf, sizeof(home_dir_buf));
|
||||
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
home_dir_buf, "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list, "/", "",
|
||||
menu_entries_add(list, "/", "",
|
||||
MENU_FILE_DIRECTORY, 0, 0);
|
||||
|
||||
ret = 0;
|
||||
|
@ -438,14 +438,14 @@ static int frontend_gx_parse_drive_list(void *data)
|
||||
#ifndef IS_SALAMANDER
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
#ifdef HW_RVL
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"sd:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"usb:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
#endif
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"carda:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"cardb:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
#endif
|
||||
|
||||
|
@ -2137,14 +2137,14 @@ static int frontend_android_parse_drive_list(void *data)
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
// MENU_FILE_DIRECTORY is not working with labels, placeholders for now
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
app_dir, "Application Dir", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
ext_dir, "External Application Dir", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
sdcard_dir, "Internal Memory", MENU_FILE_DIRECTORY, 0, 0);
|
||||
|
||||
menu_entries_push(list, "/", "",
|
||||
menu_entries_add(list, "/", "",
|
||||
MENU_FILE_DIRECTORY, 0, 0);
|
||||
|
||||
return 0;
|
||||
|
@ -485,27 +485,27 @@ static int frontend_ps3_parse_drive_list(void *data)
|
||||
#ifndef IS_SALAMANDER
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/app_home/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_hdd0/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_hdd1/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/host_root/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_usb000/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_usb001/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_usb002/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_usb003/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_usb004/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_usb005/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"/dev_usb006/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
#endif
|
||||
|
||||
|
@ -371,14 +371,14 @@ static int frontend_psp_parse_drive_list(void *data)
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
#ifdef VITA
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"cache0:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
#else
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"ms0:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"ef0:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"host0:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
#endif
|
||||
#endif
|
||||
|
@ -222,7 +222,7 @@ static int frontend_win32_parse_drive_list(void *data)
|
||||
{
|
||||
drive[0] = 'A' + i;
|
||||
if (drives & (1 << i))
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
drive, "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
}
|
||||
#endif
|
||||
|
@ -1365,18 +1365,18 @@ static int frontend_xdk_parse_drive_list(void *data)
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
|
||||
#if defined(_XBOX1)
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"C:", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"D:", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"E:", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"F:", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"G:", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
#elif defined(_XBOX360)
|
||||
menu_entries_push(list,
|
||||
menu_entries_add(list,
|
||||
"game:", "", MENU_FILE_DIRECTORY, 0, 0);
|
||||
#endif
|
||||
#endif
|
||||
|
@ -424,8 +424,7 @@ int generic_action_ok_displaylist_push(const char *path,
|
||||
info.list = selection_buf;
|
||||
info_path = menu_hash_to_str(MENU_LABEL_VALUE_CONTENT_SETTINGS);
|
||||
info_label = menu_hash_to_str(MENU_LABEL_CONTENT_SETTINGS);
|
||||
menu_entries_push(menu_stack,
|
||||
info_path, info_label, 0, 0, 0);
|
||||
menu_entries_add(menu_stack, info_path, info_label, 0, 0, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1396,7 +1396,7 @@ static int mui_list_push(void *data, void *userdata,
|
||||
{
|
||||
case DISPLAYLIST_LOAD_CONTENT_LIST:
|
||||
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
||||
menu_entries_push(info->list,
|
||||
menu_entries_add(info->list,
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_LOAD_CONTENT),
|
||||
menu_hash_to_str(MENU_LABEL_LOAD_CONTENT),
|
||||
MENU_SETTING_ACTION, 0, 0);
|
||||
@ -1404,12 +1404,12 @@ static int mui_list_push(void *data, void *userdata,
|
||||
core_info_ctl(CORE_INFO_CTL_LIST_GET, &list);
|
||||
if (core_info_list_num_info_files(list))
|
||||
{
|
||||
menu_entries_push(info->list,
|
||||
menu_entries_add(info->list,
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_DETECT_CORE_LIST),
|
||||
menu_hash_to_str(MENU_LABEL_DETECT_CORE_LIST),
|
||||
MENU_SETTING_ACTION, 0, 0);
|
||||
|
||||
menu_entries_push(info->list,
|
||||
menu_entries_add(info->list,
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_DOWNLOADED_FILE_DETECT_CORE_LIST),
|
||||
menu_hash_to_str(MENU_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST),
|
||||
MENU_SETTING_ACTION, 0, 0);
|
||||
|
@ -400,7 +400,7 @@ bool generic_menu_init_list(void *data)
|
||||
strlcpy(info.label,
|
||||
menu_hash_to_str(MENU_VALUE_MAIN_MENU), sizeof(info.label));
|
||||
|
||||
menu_entries_push(menu_stack, info.path,
|
||||
menu_entries_add(menu_stack, info.path,
|
||||
info.label, info.type, info.flags, 0);
|
||||
|
||||
info.list = selection_buf;
|
||||
|
@ -2971,7 +2971,7 @@ static bool xmb_menu_init_list(void *data)
|
||||
strlcpy(info.label,
|
||||
menu_hash_to_str(MENU_VALUE_MAIN_MENU), sizeof(info.label));
|
||||
|
||||
menu_entries_push(menu_stack, info.path,
|
||||
menu_entries_add(menu_stack, info.path,
|
||||
info.label, info.type, info.flags, 0);
|
||||
|
||||
info.list = selection_buf;
|
||||
|
@ -1299,7 +1299,7 @@ static bool zarch_menu_init_list(void *data)
|
||||
strlcpy(info.label,
|
||||
menu_hash_to_str(MENU_VALUE_HISTORY_TAB), sizeof(info.label));
|
||||
|
||||
menu_entries_push(menu_stack,
|
||||
menu_entries_add(menu_stack,
|
||||
info.path, info.label, info.type, info.flags, 0);
|
||||
|
||||
event_cmd_ctl(EVENT_CMD_HISTORY_INIT, NULL);
|
||||
|
@ -424,7 +424,7 @@ static bool zrmenu_init_list(void *data)
|
||||
strlcpy(info.label,
|
||||
menu_hash_to_str(MENU_VALUE_HISTORY_TAB), sizeof(info.label));
|
||||
|
||||
menu_entries_push(menu_stack,
|
||||
menu_entries_add(menu_stack,
|
||||
info.path, info.label, info.type, info.flags, 0);
|
||||
|
||||
event_cmd_ctl(EVENT_CMD_HISTORY_INIT, NULL);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -502,7 +502,7 @@ error:
|
||||
return false;
|
||||
}
|
||||
|
||||
void menu_entries_push(file_list_t *list, const char *path, const char *label,
|
||||
void menu_entries_add(file_list_t *list, const char *path, const char *label,
|
||||
unsigned type, size_t directory_ptr, size_t entry_idx)
|
||||
{
|
||||
menu_ctx_list_t list_info;
|
||||
|
@ -139,7 +139,7 @@ file_list_t *menu_entries_get_selection_buf_ptr(size_t idx);
|
||||
|
||||
file_list_t *menu_entries_get_menu_stack_ptr(size_t idx);
|
||||
|
||||
void menu_entries_push(file_list_t *list, const char *path, const char *label,
|
||||
void menu_entries_add(file_list_t *list, const char *path, const char *label,
|
||||
unsigned type, size_t directory_ptr, size_t entry_idx);
|
||||
|
||||
void menu_entries_get_last_stack(const char **path, const char **label,
|
||||
|
Loading…
Reference in New Issue
Block a user