@@ -10588,288 +10588,8 @@ static int materialui_menu_entry_action(
1058810588static int materialui_list_push (void * data , void * userdata ,
1058910589 menu_displaylist_info_t * info , unsigned type )
1059010590{
10591- #if 1
1059210591 /* Use common lists for all drivers */
1059310592 return -1 ;
10594- #else
10595- int ret = -1 ;
10596- core_info_list_t * list = NULL ;
10597- materialui_handle_t * mui = (materialui_handle_t * )userdata ;
10598-
10599- if (!mui )
10600- return ret ;
10601-
10602- switch (type )
10603- {
10604- case DISPLAYLIST_LOAD_CONTENT_LIST :
10605- core_info_get_list (& list );
10606-
10607- menu_entries_clear (info -> list );
10608-
10609- menu_entries_append (info -> list ,
10610- msg_hash_to_str (MENU_ENUM_LABEL_VALUE_FAVORITES ),
10611- msg_hash_to_str (MENU_ENUM_LABEL_FAVORITES ),
10612- MENU_ENUM_LABEL_FAVORITES ,
10613- MENU_SETTING_ACTION_FAVORITES_DIR , 0 , 0 , NULL );
10614-
10615- if (list -> info_count > 0 )
10616- menu_entries_append (info -> list ,
10617- msg_hash_to_str (MENU_ENUM_LABEL_VALUE_DOWNLOADED_FILE_DETECT_CORE_LIST ),
10618- msg_hash_to_str (MENU_ENUM_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST ),
10619- MENU_ENUM_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST ,
10620- MENU_SETTING_ACTION , 0 , 0 , NULL );
10621-
10622- if (frontend_driver_parse_drive_list (info -> list , true) != 0 )
10623- menu_entries_append (info -> list , "/" ,
10624- msg_hash_to_str (MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR ),
10625- MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR ,
10626- MENU_SETTING_ACTION , 0 , 0 , NULL );
10627-
10628- if (!config_get_ptr ()-> bools .kiosk_mode_enable )
10629- menu_entries_append (info -> list ,
10630- msg_hash_to_str (MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS ),
10631- msg_hash_to_str (MENU_ENUM_LABEL_MENU_FILE_BROWSER_SETTINGS ),
10632- MENU_ENUM_LABEL_MENU_FILE_BROWSER_SETTINGS ,
10633- MENU_SETTING_ACTION , 0 , 0 , NULL );
10634-
10635- info -> flags |= MD_FLAG_NEED_PUSH | MD_FLAG_NEED_REFRESH ;
10636- ret = 0 ;
10637- break ;
10638- case DISPLAYLIST_MAIN_MENU :
10639- {
10640- settings_t * settings = config_get_ptr ();
10641- uint32_t flags = runloop_get_flags ();
10642-
10643- /* If navigation bar is hidden, use default
10644- * main menu */
10645- if (mui -> nav_bar .location == MUI_NAV_BAR_LOCATION_HIDDEN )
10646- return ret ;
10647-
10648- menu_entries_clear (info -> list );
10649-
10650- if (flags & RUNLOOP_FLAG_CORE_RUNNING )
10651- {
10652- if (!retroarch_ctl (RARCH_CTL_IS_DUMMY_CORE , NULL ))
10653- {
10654- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10655- info -> list ,
10656- MENU_ENUM_LABEL_CONTENT_SETTINGS ,
10657- PARSE_ACTION ,
10658- false);
10659- }
10660- }
10661- else
10662- {
10663- rarch_system_info_t * sys_info = & runloop_state_get_ptr ()-> system ;
10664- if (sys_info && sys_info -> load_no_content )
10665- {
10666- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10667- info -> list ,
10668- MENU_ENUM_LABEL_START_CORE ,
10669- PARSE_ACTION ,
10670- false);
10671- }
10672-
10673- #ifndef HAVE_DYNAMIC
10674- if (frontend_driver_has_fork ())
10675- #endif
10676- {
10677- if (settings -> bools .menu_show_load_core )
10678- {
10679- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10680- info -> list ,
10681- MENU_ENUM_LABEL_CORE_LIST ,
10682- PARSE_ACTION ,
10683- false);
10684- }
10685- }
10686- }
10687-
10688- if (settings -> bools .menu_show_load_content )
10689- {
10690- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10691- info -> list ,
10692- MENU_ENUM_LABEL_LOAD_CONTENT_LIST ,
10693- PARSE_ACTION ,
10694- false);
10695-
10696- if (menu_displaylist_has_subsystems ())
10697- {
10698- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10699- info -> list ,
10700- MENU_ENUM_LABEL_SUBSYSTEM_SETTINGS ,
10701- PARSE_ACTION ,
10702- false);
10703- }
10704- }
10705-
10706- if (settings -> bools .menu_content_show_history )
10707- {
10708- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10709- info -> list ,
10710- MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY ,
10711- PARSE_ACTION ,
10712- false);
10713- }
10714-
10715- if (settings -> bools .menu_content_show_favorites )
10716- {
10717- menu_entries_append (info -> list ,
10718- msg_hash_to_str (MENU_ENUM_LABEL_VALUE_GOTO_FAVORITES ),
10719- msg_hash_to_str (MENU_ENUM_LABEL_GOTO_FAVORITES ),
10720- MENU_ENUM_LABEL_GOTO_FAVORITES ,
10721- MENU_SETTING_ACTION , 0 , 0 , NULL );
10722- }
10723-
10724- if (settings -> bools .menu_show_load_disc )
10725- {
10726- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10727- info -> list ,
10728- MENU_ENUM_LABEL_LOAD_DISC ,
10729- PARSE_ACTION ,
10730- false);
10731- }
10732-
10733- if (settings -> bools .menu_show_dump_disc )
10734- {
10735- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10736- info -> list ,
10737- MENU_ENUM_LABEL_DUMP_DISC ,
10738- PARSE_ACTION ,
10739- false);
10740- }
10741-
10742- #ifdef HAVE_LAKKA
10743- if (settings -> bools .menu_show_eject_disc )
10744- {
10745- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10746- info -> list ,
10747- MENU_ENUM_LABEL_EJECT_DISC ,
10748- PARSE_ACTION ,
10749- false);
10750- }
10751- #endif
10752-
10753- #if defined(HAVE_CLOUDSYNC )
10754- if (settings -> bools .cloud_sync_enable )
10755- {
10756- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10757- info -> list ,
10758- MENU_ENUM_LABEL_CLOUD_SYNC_SYNC_NOW ,
10759- PARSE_ACTION ,
10760- false);
10761- }
10762- #endif
10763-
10764- #if defined(HAVE_NETWORKING )
10765- #ifdef HAVE_LAKKA
10766- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10767- info -> list ,
10768- MENU_ENUM_LABEL_UPDATE_LAKKA ,
10769- PARSE_ACTION ,
10770- false);
10771- #else
10772- #ifdef HAVE_ONLINE_UPDATER
10773- if (settings -> bools .menu_show_online_updater )
10774- {
10775- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10776- info -> list ,
10777- MENU_ENUM_LABEL_ONLINE_UPDATER ,
10778- PARSE_ACTION ,
10779- false);
10780- }
10781- #endif
10782- #endif
10783- #ifdef HAVE_MIST
10784- if (settings -> bools .menu_show_core_manager_steam )
10785- {
10786- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10787- info -> list ,
10788- MENU_ENUM_LABEL_CORE_MANAGER_STEAM_LIST ,
10789- PARSE_ACTION ,
10790- false);
10791- }
10792- #endif
10793- if (settings -> uints .menu_content_show_add_entry ==
10794- MENU_ADD_CONTENT_ENTRY_DISPLAY_MAIN_TAB )
10795- {
10796- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10797- info -> list ,
10798- MENU_ENUM_LABEL_ADD_CONTENT_LIST ,
10799- PARSE_ACTION ,
10800- false);
10801- }
10802-
10803- if (settings -> bools .menu_content_show_netplay )
10804- {
10805- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10806- info -> list ,
10807- MENU_ENUM_LABEL_NETPLAY ,
10808- PARSE_ACTION ,
10809- false);
10810- }
10811- #endif
10812- if (settings -> bools .menu_show_information )
10813- {
10814- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10815- info -> list ,
10816- MENU_ENUM_LABEL_INFORMATION_LIST ,
10817- PARSE_ACTION ,
10818- false);
10819- }
10820-
10821- if (settings -> bools .menu_show_configurations )
10822- {
10823- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10824- info -> list ,
10825- MENU_ENUM_LABEL_CONFIGURATIONS_LIST ,
10826- PARSE_ACTION ,
10827- false);
10828- }
10829-
10830- #if !defined(IOS )
10831-
10832- if (settings -> bools .menu_show_restart_retroarch )
10833- {
10834- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10835- info -> list ,
10836- MENU_ENUM_LABEL_RESTART_RETROARCH ,
10837- PARSE_ACTION ,
10838- false);
10839- }
10840-
10841- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10842- info -> list ,
10843- MENU_ENUM_LABEL_QUIT_RETROARCH ,
10844- PARSE_ACTION ,
10845- false);
10846- #endif
10847- #if defined(HAVE_LAKKA )
10848- if (settings -> bools .menu_show_reboot )
10849- {
10850- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10851- info -> list ,
10852- MENU_ENUM_LABEL_REBOOT ,
10853- PARSE_ACTION ,
10854- false);
10855- }
10856-
10857- if (settings -> bools .menu_show_shutdown )
10858- {
10859- MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM (
10860- info -> list ,
10861- MENU_ENUM_LABEL_SHUTDOWN ,
10862- PARSE_ACTION ,
10863- false);
10864- }
10865- #endif
10866- info -> flags |= MD_FLAG_NEED_PUSH ;
10867- ret = 0 ;
10868- }
10869- break ;
10870- }
10871- return ret ;
10872- #endif
1087310593}
1087410594
1087510595/* Returns the active tab id */
0 commit comments