Cleanups/CXX_BUILD fix

This commit is contained in:
twinaphex 2016-07-03 11:29:09 +02:00
parent abebc88195
commit 26afec3b08

View File

@ -1610,7 +1610,6 @@ static int action_ok_file_load_detect_core(const char *path,
static int action_ok_file_load(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx)
{
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
char menu_path_new[PATH_MAX_LENGTH] = {0};
char full_path_new[PATH_MAX_LENGTH] = {0};
const char *menu_label = NULL;
@ -1618,9 +1617,9 @@ static int action_ok_file_load(const char *path,
rarch_setting_t *setting = NULL;
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
menu_entries_get_last(menu_stack, &menu_path, &menu_label, &enum_idx, NULL);
menu_entries_get_last(menu_stack, &menu_path, &menu_label, NULL, NULL);
setting = menu_setting_find_enum(enum_idx);
setting = menu_setting_find(menu_label);
if (menu_setting_get_type(setting) == ST_PATH)
return action_ok_set_path(path, label, type, idx, entry_idx);