Disable this by default for lakka and vita

This commit is contained in:
twinaphex 2017-06-20 02:47:55 +02:00
parent 852ef54b7d
commit 9bf8465e02
2 changed files with 13 additions and 12 deletions

View File

@ -228,11 +228,15 @@ static const bool display_keyboard_overlay = false;
#ifdef HAVE_MENU
#include "menu/menu_driver.h"
static bool default_block_config_read = true;
static bool default_block_config_read = true;
static bool menu_show_online_updater = true;
static bool menu_show_online_updater = true;
#if defined(HAVE_LAKKA) || defined(VITA)
static bool menu_show_core_updater = false;
#else
static bool menu_show_core_updater = true;
#endif
#ifdef HAVE_XMB
static unsigned xmb_scale_factor = 100;

View File

@ -3149,6 +3149,13 @@ static int menu_displaylist_parse_options(
#ifdef HAVE_NETWORKING
settings_t *settings = config_get_ptr();
if (settings->bools.menu_show_core_updater)
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_UPDATER_LIST),
msg_hash_to_str(MENU_ENUM_LABEL_CORE_UPDATER_LIST),
MENU_ENUM_LABEL_CORE_UPDATER_LIST,
MENU_SETTING_ACTION, 0, 0);
#ifdef HAVE_LAKKA
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_LAKKA),
@ -3167,14 +3174,6 @@ static int menu_displaylist_parse_options(
msg_hash_to_str(MENU_ENUM_LABEL_DOWNLOAD_CORE_CONTENT_DIRS),
MENU_ENUM_LABEL_DOWNLOAD_CORE_CONTENT_DIRS,
MENU_SETTING_ACTION, 0, 0);
#else
#if !defined(VITA)
if (settings->bools.menu_show_core_updater)
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_UPDATER_LIST),
msg_hash_to_str(MENU_ENUM_LABEL_CORE_UPDATER_LIST),
MENU_ENUM_LABEL_CORE_UPDATER_LIST,
MENU_SETTING_ACTION, 0, 0);
#endif
menu_entries_append_enum(info->list,
@ -3191,14 +3190,12 @@ static int menu_displaylist_parse_options(
MENU_SETTING_ACTION, 0, 0);
#endif
#if !defined(VITA)
if (settings->bools.menu_show_core_updater)
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_CORE_INFO_FILES),
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_CORE_INFO_FILES),
MENU_ENUM_LABEL_UPDATE_CORE_INFO_FILES,
MENU_SETTING_ACTION, 0, 0);
#endif
#ifdef HAVE_UPDATE_ASSETS
menu_entries_append_enum(info->list,