Skip to content

Commit 49d4a58

Browse files
authored
Update xmb.c with kiosk mode
Linux Fix for mixing declaration and code, missed them the first time oops again!
1 parent 67b5da6 commit 49d4a58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

menu/drivers/xmb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5863,14 +5863,14 @@ static enum menu_action xmb_parse_menu_entry_action(
58635863
settings_t *settings = config_get_ptr();
58645864
size_t i = 0;
58655865
size_t current_tab = xmb->categories_selection_ptr;
5866+
menu_entry_t entry;
58665867

58675868
/* Kiosk Mode Fix - Only jump to Main Menu if not in Kiosk Mode!*/
58685869
if(settings->bools.kiosk_mode_enable)
58695870
{
58705871
return MENU_ACTION_NOOP;
58715872
}
5872-
5873-
menu_entry_t entry;
5873+
58745874
MENU_ENTRY_INITIALIZE(entry);
58755875
menu_entry_get(&entry, 0, menu_st->selection_ptr, NULL, true);
58765876

@@ -6448,6 +6448,7 @@ static bool xmb_context_reset_textures(
64486448
const char *iconpath,
64496449
unsigned menu_xmb_theme)
64506450
{
6451+
settings_t *settings = config_get_ptr();
64516452
unsigned i;
64526453

64536454
for (i = 0; i < XMB_TEXTURE_LAST; i++)
@@ -6519,7 +6520,6 @@ static bool xmb_context_reset_textures(
65196520
}
65206521
}
65216522
/* Kiosk Mode Fix - Hide Main Menu Icon if kiosk mode is enabled */
6522-
settings_t *settings = config_get_ptr();
65236523
if (!settings->bools.kiosk_mode_enable)
65246524
{
65256525
xmb->main_menu_node.icon = xmb->textures.list[XMB_TEXTURE_MAIN_MENU];

0 commit comments

Comments
 (0)