Simplify menu_displaylist_parse_cores

This commit is contained in:
twinaphex 2017-02-24 06:26:20 +01:00
parent fd5836d4e7
commit 59b86027e9
2 changed files with 8 additions and 3 deletions

View File

@ -949,10 +949,16 @@ static int file_load_with_detect_core_wrapper(
def_info.s = menu->deferred_path;
def_info.len = sizeof(menu->deferred_path);
RARCH_LOG("menu_path_new: %s\n", menu_path_new);
RARCH_LOG("menu_label: %s\n", menu_label);
RARCH_LOG("path: %s\n", path);
if (menu_content_find_first_core(&def_info, false, new_core_path,
sizeof(new_core_path)))
ret = -1;
RARCH_LOG("new core path: %s\n", new_core_path);
if ( !is_carchive && !string_is_empty(path)
&& !string_is_empty(menu_path_new))
fill_pathname_join(detect_content_path, menu_path_new, path,

View File

@ -3386,8 +3386,7 @@ no_playlists:
static int menu_displaylist_parse_cores(
menu_handle_t *menu,
menu_displaylist_info_t *info,
enum menu_displaylist_ctl_state type)
menu_displaylist_info_t *info)
{
size_t i, list_size;
struct string_list *str_list = NULL;
@ -6380,7 +6379,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
}
break;
case DISPLAYLIST_CORES:
if (menu_displaylist_parse_cores(menu, info, type) == 0)
if (menu_displaylist_parse_cores(menu, info) == 0)
{
info->need_refresh = true;
info->need_push = true;