Move variables around

This commit is contained in:
twinaphex 2016-07-08 23:16:03 +02:00
parent 0b3f45a58a
commit 6cb11da46b

View File

@ -3220,13 +3220,10 @@ static int menu_displaylist_parse_generic(
bool path_is_compressed, push_dir, filter_ext;
size_t i, list_size;
struct string_list *str_list = NULL;
core_info_list_t *list = NULL;
unsigned items_found = 0;
settings_t *settings = config_get_ptr();
uint32_t hash_label = msg_hash_calculate(info->label);
core_info_get_list(&list);
if (!*info->path)
{
if (frontend_driver_parse_drive_list(info->list) != 0)
@ -3469,8 +3466,11 @@ static int menu_displaylist_parse_generic(
if (BIT32_GET(filebrowser_types,FILEBROWSER_SELECT_CORE))
{
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
core_info_list_t *list = NULL;
const char *dir = NULL;
core_info_get_list(&list);
menu_entries_get_last_stack(&dir, NULL, NULL, &enum_idx, NULL);
list_size = file_list_get_size(info->list);