1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-25 03:40:50 +00:00

(Menu) Move disk_options to deferred push callback

This commit is contained in:
twinaphex 2014-10-15 20:50:20 +02:00
parent 1f5276ee62
commit 110d802319
2 changed files with 16 additions and 1 deletions

@ -744,7 +744,6 @@ static int menu_parse_check(const char *label, unsigned menu_type)
!strcmp(label, "core_options") ||
!strcmp(label, "Input Options") ||
!strcmp(label, "Shader Options") ||
!strcmp(label, "disk_options") ||
!strcmp(label, "video_shader_preset_parameters") ||
!strcmp(label, "video_shader_parameters")
)

@ -1338,6 +1338,20 @@ static int deferred_push_core_information(void *data, void *userdata,
return 0;
}
static int deferred_push_disk_options(void *data, void *userdata,
const char *path, const char *label, unsigned type)
{
file_list_t *list = (file_list_t*)data;
file_list_t *menu_list = (file_list_t*)userdata;
if (!list || !menu_list)
return -1;
return push_list(driver.menu, list, path, label, type);
return 0;
}
static int deferred_push_core_list(void *data, void *userdata,
const char *path, const char *label, unsigned type)
{
@ -1790,6 +1804,8 @@ static void menu_entries_cbs_init_bind_deferred_push(menu_file_list_cbs_t *cbs,
cbs->action_deferred_push = deferred_push_core_list_deferred;
else if (!strcmp(label, "core_information"))
cbs->action_deferred_push = deferred_push_core_information;
else if (!strcmp(label, "disk_options"))
cbs->action_deferred_push = deferred_push_disk_options;
else if (!strcmp(label, "core_list"))
cbs->action_deferred_push = deferred_push_core_list;
else if (!strcmp(label, "history_list"))