mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(Menu) Reimplement deferred_core list without needing need_refresh
This commit is contained in:
parent
789ef212a5
commit
e11abc3f76
@ -795,9 +795,6 @@ int menu_parse_and_resolve(file_list_t *list, file_list_t *menu_list)
|
|||||||
RARCH_LOG("label: %s\n", label);
|
RARCH_LOG("label: %s\n", label);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!strcmp(label, "deferred_core_list"))
|
|
||||||
return menu_entries_push_list(driver.menu, list, path, label, type);
|
|
||||||
|
|
||||||
if (menu_parse_check(label, type) == -1)
|
if (menu_parse_check(label, type) == -1)
|
||||||
return - 1;
|
return - 1;
|
||||||
|
|
||||||
|
@ -334,9 +334,21 @@ static int action_ok_file_load_with_detect_core(const char *path,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else if (ret == 0)
|
else if (ret == 0)
|
||||||
menu_entries_push(driver.menu->menu_stack,
|
{
|
||||||
g_settings.libretro_directory, "deferred_core_list",
|
file_list_push(
|
||||||
0, driver.menu->selection_ptr);
|
driver.menu->menu_stack,
|
||||||
|
g_settings.libretro_directory,
|
||||||
|
"deferred_core_list",
|
||||||
|
0,
|
||||||
|
driver.menu->selection_ptr);
|
||||||
|
menu_clear_navigation(driver.menu);
|
||||||
|
menu_entries_push_list(
|
||||||
|
driver.menu,
|
||||||
|
driver.menu->selection_buf,
|
||||||
|
g_settings.libretro_directory,
|
||||||
|
"deferred_core_list",
|
||||||
|
0);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user