From b9b1f16d0f9a1922afd7711760cf6715b86afe72 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 18 Jan 2016 23:17:25 +0100 Subject: [PATCH] Only show 'OPEN_ARCHIVE' if HAVE_COMPRESSION is defined --- menu/menu_displaylist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index ef63856ad3..eeef36c3d5 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -3120,10 +3120,12 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type) strlcpy(info->path, settings->content_database, sizeof(info->path)); break; case DISPLAYLIST_ARCHIVE_ACTION: +#ifdef HAVE_COMPRESSION menu_entries_push(info->list, menu_hash_to_str(MENU_LABEL_VALUE_OPEN_ARCHIVE), menu_hash_to_str(MENU_LABEL_OPEN_ARCHIVE), 0, 0, 0); +#endif menu_entries_push(info->list, menu_hash_to_str(MENU_LABEL_VALUE_LOAD_ARCHIVE), menu_hash_to_str(MENU_LABEL_LOAD_ARCHIVE), @@ -3131,10 +3133,12 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type) info->need_push = true; break; case DISPLAYLIST_ARCHIVE_ACTION_DETECT_CORE: +#ifdef HAVE_COMPRESSION menu_entries_push(info->list, menu_hash_to_str(MENU_LABEL_VALUE_OPEN_ARCHIVE), menu_hash_to_str(MENU_LABEL_OPEN_ARCHIVE_DETECT_CORE), 0, 0, 0); +#endif menu_entries_push(info->list, menu_hash_to_str(MENU_LABEL_VALUE_LOAD_ARCHIVE), menu_hash_to_str(MENU_LABEL_LOAD_ARCHIVE_DETECT_CORE),