From db02a0c52acc30d66141ffe2262c4877ed48e522 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 24 Feb 2017 02:21:18 +0100 Subject: [PATCH] Move this back --- menu/cbs/menu_cbs_ok.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 9a77e0ab00..016ec30127 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -250,6 +250,8 @@ int generic_action_ok_displaylist_push(const char *path, settings_t *settings = config_get_ptr(); file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0); + if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu)) + return menu_cbs_exit(); new_path_tmp[0] = tmp[0] = parent_dir[0] = action_path[0] = '\0'; @@ -281,9 +283,6 @@ int generic_action_ok_displaylist_push(const char *path, dl_type = DISPLAYLIST_GENERIC; break; case ACTION_OK_DL_OPEN_ARCHIVE_DETECT_CORE: - if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu)) - return menu_cbs_exit(); - if (menu) { menu_path = menu->scratch2_buf;