@@ -473,10 +473,6 @@ typedef struct xmb_handle
473473
474474 /* Whether to show entry index for current list */
475475 bool entry_idx_enabled ;
476-
477- /* Kiosk Mode Fix - Makes sure we only call our function once after menu is ready */
478- bool is_kiosk_init ;
479-
480476} xmb_handle_t ;
481477
482478static float xmb_scale_mod [8 ] = {
@@ -5860,17 +5856,10 @@ static enum menu_action xmb_parse_menu_entry_action(
58605856 else
58615857 {
58625858 /* Jump to Main Menu */
5863- settings_t * settings = config_get_ptr ();
58645859 size_t i = 0 ;
58655860 size_t current_tab = xmb -> categories_selection_ptr ;
5861+
58665862 menu_entry_t entry ;
5867-
5868- /* Kiosk Mode Fix - Only jump to Main Menu if not in Kiosk Mode!*/
5869- if (settings -> bools .kiosk_mode_enable )
5870- {
5871- return MENU_ACTION_NOOP ;
5872- }
5873-
58745863 MENU_ENTRY_INITIALIZE (entry );
58755864 menu_entry_get (& entry , 0 , menu_st -> selection_ptr , NULL , true);
58765865
@@ -6448,7 +6437,6 @@ static bool xmb_context_reset_textures(
64486437 const char * iconpath ,
64496438 unsigned menu_xmb_theme )
64506439{
6451- settings_t * settings = config_get_ptr ();
64526440 unsigned i ;
64536441
64546442 for (i = 0 ; i < XMB_TEXTURE_LAST ; i ++ )
@@ -6519,13 +6507,11 @@ static bool xmb_context_reset_textures(
65196507 }
65206508 }
65216509 }
6522- /* Kiosk Mode Fix - Hide Main Menu Icon if kiosk mode is enabled */
6523- if (!settings -> bools .kiosk_mode_enable )
6524- {
6525- xmb -> main_menu_node .icon = xmb -> textures .list [XMB_TEXTURE_MAIN_MENU ];
6526- xmb -> main_menu_node .alpha = xmb -> categories_active_alpha ;
6527- xmb -> main_menu_node .zoom = xmb -> categories_active_zoom ;
6528- }
6510+
6511+ xmb -> main_menu_node .icon = xmb -> textures .list [XMB_TEXTURE_MAIN_MENU ];
6512+ xmb -> main_menu_node .alpha = xmb -> categories_active_alpha ;
6513+ xmb -> main_menu_node .zoom = xmb -> categories_active_zoom ;
6514+
65296515 xmb -> settings_tab_node .icon = xmb -> textures .list [XMB_TEXTURE_SETTINGS ];
65306516 xmb -> settings_tab_node .alpha = xmb -> categories_active_alpha ;
65316517 xmb -> settings_tab_node .zoom = xmb -> categories_active_zoom ;
@@ -8732,10 +8718,7 @@ static void *xmb_init(void **userdata, bool video_is_threaded)
87328718 xmb -> depth = 1 ;
87338719 xmb -> old_depth = 1 ;
87348720 xmb -> alpha = 1.0f ;
8735-
8736- /* Kiosk Mode Fix */
8737- xmb -> is_kiosk_init = false;
8738-
8721+
87398722 xmb_refresh_system_tabs_list (xmb );
87408723
87418724 for (i = 0 ; i < XMB_TAB_MAX_LENGTH ; i ++ )
@@ -8804,45 +8787,6 @@ static void *xmb_init(void **userdata, bool video_is_threaded)
88048787 return NULL ;
88058788}
88068789
8807- /* Kiosk Mode Fix */
8808- static void xmb_kiosk_mode_fix (xmb_handle_t * xmb )
8809- {
8810- settings_t * settings = config_get_ptr ();
8811- if (settings -> bools .kiosk_mode_enable )
8812- {
8813- /* Only jump if we have a Horizontal Menu ( if Play lists Tab is not empty ! ) */
8814- /* If we have no playlists on the playlists tab, disable Kiosk mode and reset !*/
8815- if ((unsigned )xmb_list_get_size (xmb , MENU_LIST_HORIZONTAL ) <= 0 )
8816- {
8817- /* Disable Kiosk Mode ( Prevents Crash when kiosk mode enabled with no playlists ) */
8818- settings -> bools .kiosk_mode_enable = false;
8819- /* Re-Enable Main Menu Icon! */
8820- xmb -> main_menu_node .icon = xmb -> textures .list [XMB_TEXTURE_MAIN_MENU ];
8821- xmb -> main_menu_node .alpha = xmb -> categories_active_alpha ;
8822- xmb -> main_menu_node .zoom = xmb -> categories_active_zoom ;
8823- /* Refresh list */
8824- xmb_refresh_system_tabs_list (xmb );
8825- }
8826- else
8827- {
8828- /* Jump one Categorie Right after init ( "hides" main menu ) */
8829- /* Only happens once on init */
8830- if (!xmb -> is_kiosk_init )
8831- {
8832- struct menu_state * menu_st = menu_state_get_ptr ();
8833- menu_list_t * menu_list = menu_st -> entries .list ;
8834-
8835- menu_entry_t entry ;
8836- MENU_ENTRY_INITIALIZE (entry );
8837- menu_entry_get (& entry , 0 , menu_st -> selection_ptr , NULL , true);
8838-
8839- xmb_menu_entry_action (xmb , & entry , menu_st -> selection_ptr , MENU_ACTION_RIGHT );
8840- xmb -> is_kiosk_init = true;
8841- }
8842- }
8843- }
8844- }
8845-
88468790static void xmb_free (void * data )
88478791{
88488792 xmb_handle_t * xmb = (xmb_handle_t * )data ;
@@ -9060,7 +9004,6 @@ static void xmb_list_cache(void *data, enum menu_list_type type,
90609004 file_list_t * menu_stack = MENU_LIST_GET (menu_list , 0 );
90619005 file_list_t * selection_buf = MENU_LIST_GET_SELECTION (menu_list , 0 );
90629006 size_t selection = menu_st -> selection_ptr ;
9063- settings_t * settings = config_get_ptr ();
90649007 unsigned horizontal_list_size = (xmb -> show_playlist_tabs )
90659008 ? (unsigned )xmb_list_get_size (xmb , MENU_LIST_HORIZONTAL )
90669009 : 0 ;
@@ -9110,54 +9053,23 @@ static void xmb_list_cache(void *data, enum menu_list_type type,
91109053 switch (action )
91119054 {
91129055 case MENU_ACTION_LEFT :
9113- /* Kiosk Mode Fix - Only allow categorie movement between idx 1 and last instead of 0 ( skips main menu ) */
9114- if (settings -> bools .kiosk_mode_enable )
9056+ if (xmb -> categories_selection_ptr == 0 )
91159057 {
9116- if (xmb -> categories_selection_ptr == 1 )
9117- {
9118- xmb -> categories_selection_ptr = list_size ;
9119- xmb -> categories_active_idx = (unsigned )(list_size - 1 );
9120- }
9121- else
9122- xmb -> categories_selection_ptr -- ;
9123- break ;
9058+ xmb -> categories_selection_ptr = list_size ;
9059+ xmb -> categories_active_idx = (unsigned )(list_size - 1 );
91249060 }
91259061 else
9126- {
9127- if (xmb -> categories_selection_ptr == 0 )
9128- {
9129- xmb -> categories_selection_ptr = list_size ;
9130- xmb -> categories_active_idx = (unsigned )(list_size - 1 );
9131- }
9132- else
9133- xmb -> categories_selection_ptr -- ;
9134- break ;
9135- }
9062+ xmb -> categories_selection_ptr -- ;
9063+ break ;
91369064 default :
9137- /* Kiosk Mode Fix - Only allow categorie movement between idx 1 and last instead of 0 ( skips main menu ) */
9138- if (settings -> bools .kiosk_mode_enable )
9065+ if (xmb -> categories_selection_ptr == list_size )
91399066 {
9140- if (xmb -> categories_selection_ptr == list_size )
9141- {
9142- xmb -> categories_selection_ptr = 1 ;
9143- xmb -> categories_active_idx = 2 ;
9144- }
9145- else
9146- xmb -> categories_selection_ptr ++ ;
9147- break ;
9067+ xmb -> categories_selection_ptr = 0 ;
9068+ xmb -> categories_active_idx = 1 ;
91489069 }
91499070 else
9150- {
9151- if (xmb -> categories_selection_ptr == list_size )
9152- {
9153- xmb -> categories_selection_ptr = 0 ;
9154- xmb -> categories_active_idx = 1 ;
9155- }
9156- else
9157- xmb -> categories_selection_ptr ++ ;
9158- break ;
9159- }
9160-
9071+ xmb -> categories_selection_ptr ++ ;
9072+ break ;
91619073 }
91629074
91639075 stack_size = menu_stack -> size ;
@@ -9295,10 +9207,7 @@ static void xmb_toggle(void *userdata, bool menu_on)
92959207 xmb_fade_out (xmb );
92969208 return ;
92979209 }
9298-
9299- /* Kiosk Mode Fix */
9300- xmb_kiosk_mode_fix (xmb );
9301-
9210+
93029211 /* Have to reset this, otherwise savestate
93039212 * thumbnail won't update after selecting
93049213 * 'save state' option */
0 commit comments