Skip to content

Commit 3315e96

Browse files
authored
Update xmb.c with kiosk mode
Fixed Linux bug for mixing declaration with code, oops.
1 parent 1ca2e08 commit 3315e96

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

menu/drivers/xmb.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5859,16 +5859,17 @@ static enum menu_action xmb_parse_menu_entry_action(
58595859
}
58605860
else
58615861
{
5862-
/* Kiosk Mode Fix - Only jump to Main Menu if not in Kiosk Mode!*/
5862+
/* Jump to Main Menu */
58635863
settings_t *settings = config_get_ptr();
5864+
size_t i = 0;
5865+
size_t current_tab = xmb->categories_selection_ptr;
5866+
5867+
/* Kiosk Mode Fix - Only jump to Main Menu if not in Kiosk Mode!*/
58645868
if(settings->bools.kiosk_mode_enable)
58655869
{
58665870
return MENU_ACTION_NOOP;
58675871
}
5868-
/* Jump to Main Menu */
5869-
size_t i = 0;
5870-
size_t current_tab = xmb->categories_selection_ptr;
5871-
5872+
58725873
menu_entry_t entry;
58735874
MENU_ENTRY_INITIALIZE(entry);
58745875
menu_entry_get(&entry, 0, menu_st->selection_ptr, NULL, true);

0 commit comments

Comments
 (0)