mirror of
https://github.com/libretro/RetroArch
synced 2025-03-15 13:21:29 +00:00
(XMB) Create custom Main Menu list
This commit is contained in:
parent
0443b2af8d
commit
7ea16f622e
@ -104,7 +104,9 @@ static int input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
RARCH_LOG("Autodetect: configuration file: %s score: %d\n", conf->path, score);
|
||||
#endif
|
||||
return score;
|
||||
}
|
||||
|
||||
@ -158,7 +160,9 @@ static void input_autoconfigure_joypad_add(
|
||||
rarch_main_msg_queue_push(msg, 0, 60, false);
|
||||
}
|
||||
|
||||
#if 0
|
||||
RARCH_LOG("Autodetect: %s\n", msg);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(HAVE_BUILTIN_AUTOCONFIG)
|
||||
|
@ -2592,7 +2592,52 @@ static int xmb_list_bind_init(menu_file_list_cbs_t *cbs,
|
||||
|
||||
static int xmb_list_push(menu_displaylist_info_t *info, unsigned type)
|
||||
{
|
||||
return -1;
|
||||
int ret = -1;
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case DISPLAYLIST_MAIN_MENU:
|
||||
menu_entries_clear(info->list);
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_CONTENT_SETTINGS), PARSE_ACTION);
|
||||
#if defined(HAVE_DYNAMIC) || defined(HAVE_LIBRETRO_MANAGEMENT)
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_CORE_LIST), PARSE_ACTION);
|
||||
#endif
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_LOAD_CONTENT_LIST), PARSE_ACTION);
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_LOAD_CONTENT_HISTORY), PARSE_ACTION);
|
||||
#if defined(HAVE_NETWORKING)
|
||||
#if defined(HAVE_LIBRETRODB)
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_ADD_CONTENT_LIST), PARSE_ACTION);
|
||||
#endif
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_ONLINE_UPDATER), PARSE_ACTION);
|
||||
#endif
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_INFORMATION_LIST), PARSE_ACTION);
|
||||
#ifndef HAVE_DYNAMIC
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_RESTART_RETROARCH), PARSE_ACTION);
|
||||
#endif
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_CONFIGURATIONS), PARSE_ACTION);
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_SAVE_NEW_CONFIG), PARSE_ACTION);
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_HELP_LIST), PARSE_ACTION);
|
||||
#if !defined(IOS)
|
||||
menu_displaylist_parse_settings(menu, info,
|
||||
menu_hash_to_str(MENU_LABEL_QUIT_RETROARCH), PARSE_ACTION);
|
||||
#endif
|
||||
info->need_push = true;
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
static bool xmb_menu_init_list(void *data)
|
||||
|
@ -1521,6 +1521,7 @@ int menu_displaylist_parse_settings(void *data, menu_displaylist_info_t *info,
|
||||
!settings->menu.show_advanced_settings)
|
||||
goto loop;
|
||||
|
||||
|
||||
menu_entries_push(info->list, short_description,
|
||||
name, menu_setting_set_flags(setting), 0, 0);
|
||||
count++;
|
||||
|
@ -2871,7 +2871,10 @@ static bool setting_append_list_main_menu_options(
|
||||
parent_group);
|
||||
}
|
||||
|
||||
#if defined(HAVE_NETWORKING) || defined(HAVE_LIBRETRODB)
|
||||
|
||||
#if defined(HAVE_NETWORKING)
|
||||
|
||||
#if defined(HAVE_LIBRETRODB)
|
||||
CONFIG_ACTION(
|
||||
menu_hash_to_str(MENU_LABEL_ADD_CONTENT_LIST),
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_ADD_CONTENT_LIST),
|
||||
@ -2880,7 +2883,6 @@ static bool setting_append_list_main_menu_options(
|
||||
parent_group);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NETWORKING
|
||||
CONFIG_ACTION(
|
||||
menu_hash_to_str(MENU_LABEL_ONLINE_UPDATER),
|
||||
menu_hash_to_str(MENU_LABEL_VALUE_ONLINE_UPDATER),
|
||||
|
Loading…
x
Reference in New Issue
Block a user