mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Get rid of entry_iterate callback in menu driver
This commit is contained in:
parent
1235450c69
commit
1a152677a3
@ -55,11 +55,6 @@ typedef struct glui_handle
|
|||||||
gl_font_raster_block_t list_block;
|
gl_font_raster_block_t list_block;
|
||||||
} glui_handle_t;
|
} glui_handle_t;
|
||||||
|
|
||||||
static int glui_entry_iterate(unsigned action)
|
|
||||||
{
|
|
||||||
return menu_entry_iterate(action);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void glui_blit_line(float x, float y,
|
static void glui_blit_line(float x, float y,
|
||||||
const char *message, uint32_t color, enum text_alignment text_align)
|
const char *message, uint32_t color, enum text_alignment text_align)
|
||||||
{
|
{
|
||||||
@ -681,7 +676,6 @@ menu_ctx_driver_t menu_ctx_glui = {
|
|||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
glui_entry_iterate,
|
|
||||||
glui_load_wallpaper,
|
glui_load_wallpaper,
|
||||||
"glui",
|
"glui",
|
||||||
};
|
};
|
||||||
|
@ -47,6 +47,5 @@ menu_ctx_driver_t menu_ctx_null = {
|
|||||||
NULL, // list_cache
|
NULL, // list_cache
|
||||||
NULL, // list_set_selection
|
NULL, // list_set_selection
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
|
||||||
"null",
|
"null",
|
||||||
};
|
};
|
||||||
|
@ -56,11 +56,6 @@ static INLINE uint16_t argb32_to_rgba4444(uint32_t col)
|
|||||||
return (r << 12) | (g << 8) | (b << 4) | a;
|
return (r << 12) | (g << 8) | (b << 4) | a;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rgui_entry_iterate(unsigned action)
|
|
||||||
{
|
|
||||||
return menu_entry_iterate(action);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void rgui_copy_glyph(uint8_t *glyph, const uint8_t *buf)
|
static void rgui_copy_glyph(uint8_t *glyph, const uint8_t *buf)
|
||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
@ -669,7 +664,6 @@ menu_ctx_driver_t menu_ctx_rgui = {
|
|||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
rgui_entry_iterate,
|
|
||||||
NULL,
|
NULL,
|
||||||
"rgui",
|
"rgui",
|
||||||
};
|
};
|
||||||
|
@ -65,11 +65,6 @@ struct texture_image *menu_texture;
|
|||||||
static bool render_normal = true;
|
static bool render_normal = true;
|
||||||
static bool menu_texture_inited =false;
|
static bool menu_texture_inited =false;
|
||||||
|
|
||||||
static int rmenu_entry_iterate(unsigned action)
|
|
||||||
{
|
|
||||||
return menu_entry_iterate(action);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void rmenu_render_background(void)
|
static void rmenu_render_background(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -335,7 +330,6 @@ menu_ctx_driver_t menu_ctx_rmenu = {
|
|||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
rmenu_entry_iterate,
|
|
||||||
NULL,
|
NULL,
|
||||||
"rmenu",
|
"rmenu",
|
||||||
};
|
};
|
||||||
|
@ -61,11 +61,6 @@ HXUIOBJ root_menu;
|
|||||||
HXUIOBJ current_menu;
|
HXUIOBJ current_menu;
|
||||||
static msg_queue_t *xui_msg_queue;
|
static msg_queue_t *xui_msg_queue;
|
||||||
|
|
||||||
static int rmenu_xui_entry_iterate(unsigned action)
|
|
||||||
{
|
|
||||||
return menu_entry_iterate(action);
|
|
||||||
}
|
|
||||||
|
|
||||||
class CRetroArch : public CXuiModule
|
class CRetroArch : public CXuiModule
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
@ -688,7 +683,6 @@ menu_ctx_driver_t menu_ctx_rmenu_xui = {
|
|||||||
rmenu_xui_list_clear,
|
rmenu_xui_list_clear,
|
||||||
NULL,
|
NULL,
|
||||||
rmenu_xui_list_set_selection,
|
rmenu_xui_list_set_selection,
|
||||||
rmenu_xui_entry_iterate,
|
|
||||||
NULL,
|
NULL,
|
||||||
"rmenu_xui",
|
"rmenu_xui",
|
||||||
};
|
};
|
||||||
|
@ -245,11 +245,6 @@ static float xmb_item_y(xmb_handle_t *xmb, int i, size_t current)
|
|||||||
return iy;
|
return iy;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int xmb_entry_iterate(unsigned action)
|
|
||||||
{
|
|
||||||
return menu_entry_iterate(action);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void xmb_draw_icon_begin(gl_t *gl)
|
static void xmb_draw_icon_begin(gl_t *gl)
|
||||||
{
|
{
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
@ -1947,7 +1942,6 @@ menu_ctx_driver_t menu_ctx_xmb = {
|
|||||||
NULL,
|
NULL,
|
||||||
xmb_list_cache,
|
xmb_list_cache,
|
||||||
NULL,
|
NULL,
|
||||||
xmb_entry_iterate,
|
|
||||||
xmb_load_wallpaper,
|
xmb_load_wallpaper,
|
||||||
"xmb",
|
"xmb",
|
||||||
};
|
};
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "menu_display.h"
|
#include "menu_display.h"
|
||||||
|
#include "menu_entry.h"
|
||||||
#include "menu_entries.h"
|
#include "menu_entries.h"
|
||||||
#include "menu_shader.h"
|
#include "menu_shader.h"
|
||||||
#include "../dynamic.h"
|
#include "../dynamic.h"
|
||||||
@ -91,7 +92,7 @@ bool menu_load_content(void)
|
|||||||
if (menu)
|
if (menu)
|
||||||
menu->msg_force = true;
|
menu->msg_force = true;
|
||||||
|
|
||||||
menu_driver_entry_iterate(MENU_ACTION_NOOP);
|
menu_entry_iterate(MENU_ACTION_NOOP);
|
||||||
|
|
||||||
menu_display_fb();
|
menu_display_fb();
|
||||||
|
|
||||||
@ -352,7 +353,7 @@ int menu_iterate(retro_input_t input,
|
|||||||
last_clock_update = menu->cur_time;
|
last_clock_update = menu->cur_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_driver_entry_iterate(action);
|
menu_entry_iterate(action);
|
||||||
|
|
||||||
if (runloop->is_menu && !runloop->is_idle)
|
if (runloop->is_menu && !runloop->is_idle)
|
||||||
menu_display_fb();
|
menu_display_fb();
|
||||||
|
@ -292,14 +292,6 @@ void menu_driver_frame(void)
|
|||||||
driver->frame();
|
driver->frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
void menu_driver_entry_iterate(unsigned action)
|
|
||||||
{
|
|
||||||
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
|
||||||
|
|
||||||
if (driver->entry_iterate)
|
|
||||||
driver->entry_iterate(action);
|
|
||||||
}
|
|
||||||
|
|
||||||
void menu_driver_free(menu_handle_t *menu)
|
void menu_driver_free(menu_handle_t *menu)
|
||||||
{
|
{
|
||||||
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
||||||
|
@ -269,7 +269,6 @@ typedef struct menu_ctx_driver
|
|||||||
void (*list_clear)(file_list_t *list);
|
void (*list_clear)(file_list_t *list);
|
||||||
void (*list_cache)(bool, unsigned);
|
void (*list_cache)(bool, unsigned);
|
||||||
void (*list_set_selection)(file_list_t *list);
|
void (*list_set_selection)(file_list_t *list);
|
||||||
int (*entry_iterate)(unsigned);
|
|
||||||
bool (*load_background)(void *data);
|
bool (*load_background)(void *data);
|
||||||
const char *ident;
|
const char *ident;
|
||||||
} menu_ctx_driver_t;
|
} menu_ctx_driver_t;
|
||||||
@ -332,8 +331,6 @@ void menu_driver_frame(void);
|
|||||||
|
|
||||||
void menu_driver_context_reset(void);
|
void menu_driver_context_reset(void);
|
||||||
|
|
||||||
void menu_driver_entry_iterate(unsigned action);
|
|
||||||
|
|
||||||
void menu_driver_free(menu_handle_t *menu);
|
void menu_driver_free(menu_handle_t *menu);
|
||||||
|
|
||||||
void menu_driver_render(void);
|
void menu_driver_render(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user