From 426dfd79dbebd3a7fd4548e2982ef341d2bd9ad4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 29 May 2017 03:35:11 +0200 Subject: [PATCH] Properly hide 'Core Information' if core is unloaded --- menu/menu_displaylist.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index a916382ac9..02024807de 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -2984,11 +2984,18 @@ static int menu_displaylist_parse_horizontal_content_actions( static int menu_displaylist_parse_information_list( menu_displaylist_info_t *info) { - core_info_t *core_info = NULL; + core_info_t *core_info = NULL; + rarch_system_info_t *system = runloop_get_system_info(); core_info_get_current_core(&core_info); - if (core_info && core_info->config_data) + if ( system && + (!string_is_empty(system->info.library_name) && + !string_is_equal(system->info.library_name, + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE)) + ) + && core_info && core_info->config_data + ) menu_entries_append_enum(info->list, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFORMATION), msg_hash_to_str(MENU_ENUM_LABEL_CORE_INFORMATION),