Make menu_ctx_driver_get_ptr public - ALWAYS make sure that

no symbols will be redefined - Griffin depends on this
This commit is contained in:
twinaphex 2015-05-19 21:55:44 +02:00
parent f0506843c0
commit 3c7e0b29fc
3 changed files with 3 additions and 9 deletions

View File

@ -173,7 +173,7 @@ menu_handle_t *menu_driver_get_ptr(void)
return driver->menu;
}
static const menu_ctx_driver_t *menu_ctx_driver_get_ptr(void)
const menu_ctx_driver_t *menu_ctx_driver_get_ptr(void)
{
driver_t *driver = driver_get_ptr();
if (!driver || !driver->menu_ctx)

View File

@ -343,6 +343,8 @@ void menu_driver_list_clear(file_list_t *list);
void menu_driver_list_set_selection(file_list_t *list);
const menu_ctx_driver_t *menu_ctx_driver_get_ptr(void);
void menu_driver_context_destroy(void);
bool menu_driver_alive(void);

View File

@ -940,14 +940,6 @@ void menu_input_post_iterate(int *ret, unsigned action)
*ret |= menu_input_pointer_post_iterate(cbs, &entry, action);
}
static const menu_ctx_driver_t *menu_ctx_driver_get_ptr(void)
{
driver_t *driver = driver_get_ptr();
if (!driver || !driver->menu_ctx)
return NULL;
return driver->menu_ctx;
}
unsigned menu_input_frame(retro_input_t input, retro_input_t trigger_input)
{
unsigned ret = 0;