From 9ffb7030d2c94a16adfd8375777c258ee2283607 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 19 May 2015 00:52:37 +0200 Subject: [PATCH] Move DISPLAYLIST_CORES_UPDATER to menu_displaylist_parse --- menu/menu_displaylist.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index ffc5673499..feb806010c 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -764,6 +764,13 @@ static int menu_displaylist_parse(menu_displaylist_info_t *info, switch (type) { + case DISPLAYLIST_CORES_UPDATER: +#ifdef HAVE_NETWORKING + print_buf_lines(info->list, core_buf, core_len, MENU_FILE_DOWNLOAD_CORE); + *need_push = true; + *need_refresh = true; +#endif + break; case DISPLAYLIST_PERFCOUNTER_SELECTION: menu_list_push(info->list, "Frontend Counters", "frontend_counters", MENU_SETTING_ACTION, 0); @@ -1984,6 +1991,7 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type) case DISPLAYLIST_HISTORY: case DISPLAYLIST_SETTINGS_ALL: case DISPLAYLIST_PERFCOUNTER_SELECTION: + case DISPLAYLIST_CORES_UPDATER: ret = menu_displaylist_parse(info, type, &need_sort, &need_refresh, &need_push); break; @@ -2016,14 +2024,6 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type) need_refresh = false; need_push = true; break; - case DISPLAYLIST_CORES_UPDATER: - menu_list_clear(info->list); -#ifdef HAVE_NETWORKING - print_buf_lines(info->list, core_buf, core_len, MENU_FILE_DOWNLOAD_CORE); - need_push = true; - need_refresh = true; -#endif - break; case DISPLAYLIST_SHADER_PARAMETERS: case DISPLAYLIST_SHADER_PARAMETERS_PRESET: menu_list_clear(info->list);