From b84b1b083a9ee6b7a0d7ab9afc0e3224bf6f7ce7 Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 26 Dec 2018 09:39:06 -0800 Subject: [PATCH] menu: Hide options for the kiosk menu. This hides 'reset core association', 'start recording' and 'start streaming' when the kiosk menu is active. Fixes https://github.com/libretro/RetroArch/issues/7824 Fixes https://github.com/libretro/RetroArch/issues/7825 --- menu/menu_displaylist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index cdf3fda1ce..631cb9abe6 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -2672,7 +2672,7 @@ static int menu_displaylist_parse_load_content_settings( { if (!recording_is_enabled()) { - if (settings->bools.quick_menu_show_start_recording) + if (settings->bools.quick_menu_show_start_recording && !settings->bools.kiosk_mode_enable) { menu_entries_append_enum(info->list, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QUICK_MENU_START_RECORDING), @@ -2680,7 +2680,7 @@ static int menu_displaylist_parse_load_content_settings( MENU_ENUM_LABEL_QUICK_MENU_START_RECORDING, MENU_SETTING_ACTION, 0, 0); } - if (settings->bools.quick_menu_show_start_streaming) + if (settings->bools.quick_menu_show_start_streaming && !settings->bools.kiosk_mode_enable) { menu_entries_append_enum(info->list, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QUICK_MENU_START_STREAMING), @@ -2893,7 +2893,7 @@ static int menu_displaylist_parse_horizontal_content_actions( MENU_ENUM_LABEL_ADD_TO_FAVORITES_PLAYLIST, FILE_TYPE_PLAYLIST_ENTRY, 0, 0); } - if (settings->bools.quick_menu_show_reset_core_association) + if (settings->bools.quick_menu_show_reset_core_association && !settings->bools.kiosk_mode_enable) { menu_entries_append_enum(info->list, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RESET_CORE_ASSOCIATION),