mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-03 10:13:11 +00:00
(Menu) Add iterate to menu_ctx_driver_t - needed for RMenu XUI
This commit is contained in:
parent
8fe6a04b56
commit
7843a3bec3
@ -582,5 +582,6 @@ const menu_ctx_driver_t menu_ctx_rgui = {
|
|||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
|
NULL,
|
||||||
"rgui",
|
"rgui",
|
||||||
};
|
};
|
||||||
|
@ -477,5 +477,6 @@ const menu_ctx_driver_t menu_ctx_rmenu = {
|
|||||||
rmenu_init_assets,
|
rmenu_init_assets,
|
||||||
rmenu_free_assets,
|
rmenu_free_assets,
|
||||||
NULL,
|
NULL,
|
||||||
|
NULL,
|
||||||
"rmenu",
|
"rmenu",
|
||||||
};
|
};
|
||||||
|
@ -37,10 +37,6 @@ const menu_ctx_driver_t *menu_ctx;
|
|||||||
//forward decl
|
//forward decl
|
||||||
static int menu_iterate_func(void *data, unsigned action);
|
static int menu_iterate_func(void *data, unsigned action);
|
||||||
|
|
||||||
#if defined(HAVE_RMENU_XUI)
|
|
||||||
#define menu_iterate_func(a, b) rmenu_xui_iterate(a, b)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SHADER_MANAGER
|
#ifdef HAVE_SHADER_MANAGER
|
||||||
void shader_manager_init(void *data)
|
void shader_manager_init(void *data)
|
||||||
{
|
{
|
||||||
@ -1355,6 +1351,9 @@ static int menu_iterate_func(void *data, unsigned action)
|
|||||||
menu_parse_and_resolve(rgui, menu_type);
|
menu_parse_and_resolve(rgui, menu_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (menu_ctx && menu_ctx->iterate)
|
||||||
|
menu_ctx->iterate(rgui, action);
|
||||||
|
|
||||||
if (menu_ctx && menu_ctx->render)
|
if (menu_ctx && menu_ctx->render)
|
||||||
menu_ctx->render(rgui);
|
menu_ctx->render(rgui);
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ typedef struct menu_ctx_driver
|
|||||||
void (*init_assets)(void*);
|
void (*init_assets)(void*);
|
||||||
void (*free_assets)(void*);
|
void (*free_assets)(void*);
|
||||||
void (*populate_entries)(void*, unsigned);
|
void (*populate_entries)(void*, unsigned);
|
||||||
|
void (*iterate)(void*, unsigned);
|
||||||
|
|
||||||
// Human readable string.
|
// Human readable string.
|
||||||
const char *ident;
|
const char *ident;
|
||||||
|
@ -1431,5 +1431,6 @@ const menu_ctx_driver_t menu_ctx_rmenu_xui = {
|
|||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
rmenu_xui_populate_entries,
|
rmenu_xui_populate_entries,
|
||||||
|
rmenu_xui_iterate,
|
||||||
"rmenu_xui",
|
"rmenu_xui",
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user