From aa338967f8ff997aa93f2d3d79924d413fab7592 Mon Sep 17 00:00:00 2001 From: meancoot Date: Tue, 17 Dec 2013 16:57:15 -0500 Subject: [PATCH] (iOS) If no cores were found to support a file a list of all cores will be displayed instead. --- apple/iOS/menu.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apple/iOS/menu.m b/apple/iOS/menu.m index 1d20375344..8ded52ddb9 100644 --- a/apple/iOS/menu.m +++ b/apple/iOS/menu.m @@ -882,9 +882,7 @@ static const void* const associated_core_key = &associated_core_key; core_info_list_t* core_list = apple_core_info_list_get(); if (core_list) { - if (!_path) - [self load:core_list->count coresFromList:core_list->list toSection:core_section]; - else + if (_path) { const core_info_t* core_support = 0; size_t core_count = 0; @@ -895,6 +893,9 @@ static const void* const associated_core_key = &associated_core_key; else if (core_count > 1) [self load:core_count coresFromList:core_support toSection:core_section]; } + + if (!_path || [core_section count] == 1) + [self load:core_list->count coresFromList:core_list->list toSection:core_section]; } }