mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Move Database Manager/Cursor Manager to 'Management'
This commit is contained in:
parent
d8294c8dc0
commit
650ce81d74
@ -3104,6 +3104,31 @@ static int deferred_push_options(void *data, void *userdata,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int deferred_push_management_options(void *data, void *userdata,
|
||||
const char *path, const char *label, unsigned type)
|
||||
{
|
||||
unsigned i;
|
||||
file_list_t *list = (file_list_t*)data;
|
||||
file_list_t *menu_list = (file_list_t*)userdata;
|
||||
|
||||
if (!list || !menu_list)
|
||||
return -1;
|
||||
|
||||
menu_list_clear(list);
|
||||
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
menu_list_push(list, "Database Manager", "database_manager_list",
|
||||
MENU_SETTING_ACTION, 0);
|
||||
menu_list_push(list, "Cursor Manager", "cursor_manager_list",
|
||||
MENU_SETTING_ACTION, 0);
|
||||
#endif
|
||||
|
||||
if (driver.menu_ctx && driver.menu_ctx->populate_entries)
|
||||
driver.menu_ctx->populate_entries(driver.menu, path, label, type);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static void push_perfcounter(menu_handle_t *menu,
|
||||
file_list_t *list,
|
||||
@ -5170,6 +5195,7 @@ static void menu_entries_cbs_init_bind_ok(menu_file_list_cbs_t *cbs,
|
||||
!strcmp(label, "performance_counters") ||
|
||||
!strcmp(label, "frontend_counters") ||
|
||||
!strcmp(label, "core_counters") ||
|
||||
!strcmp(label, "management") ||
|
||||
!strcmp(label, "options")
|
||||
)
|
||||
cbs->action_ok = action_ok_push_default;
|
||||
@ -5627,6 +5653,8 @@ static void menu_entries_cbs_init_bind_deferred_push(menu_file_list_cbs_t *cbs,
|
||||
cbs->action_deferred_push = deferred_push_shader_options;
|
||||
else if (!strcmp(label, "options"))
|
||||
cbs->action_deferred_push = deferred_push_options;
|
||||
else if (!strcmp(label, "management"))
|
||||
cbs->action_deferred_push = deferred_push_management_options;
|
||||
else if (type == MENU_SETTING_GROUP)
|
||||
cbs->action_deferred_push = deferred_push_category;
|
||||
else if (!strcmp(label, "deferred_core_list"))
|
||||
|
@ -3195,20 +3195,6 @@ static bool setting_data_append_list_main_menu_options(
|
||||
subgroup_info.name);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
CONFIG_ACTION(
|
||||
"database_manager_list",
|
||||
"Database Manager",
|
||||
group_info.name,
|
||||
subgroup_info.name);
|
||||
|
||||
CONFIG_ACTION(
|
||||
"cursor_manager_list",
|
||||
"Cursor Manager",
|
||||
group_info.name,
|
||||
subgroup_info.name);
|
||||
#endif
|
||||
|
||||
if (g_settings.history_list_enable)
|
||||
{
|
||||
CONFIG_ACTION(
|
||||
@ -3247,6 +3233,12 @@ static bool setting_data_append_list_main_menu_options(
|
||||
group_info.name,
|
||||
subgroup_info.name);
|
||||
|
||||
CONFIG_ACTION(
|
||||
"management",
|
||||
"Management",
|
||||
group_info.name,
|
||||
subgroup_info.name);
|
||||
|
||||
CONFIG_ACTION(
|
||||
"options",
|
||||
"Options",
|
||||
|
Loading…
x
Reference in New Issue
Block a user