mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
Add notify_refresh to UI companion driver interface
This commit is contained in:
parent
202ffaee3b
commit
7079cdb798
@ -497,5 +497,6 @@ const ui_companion_driver_t ui_companion_cocoa = {
|
|||||||
ui_companion_cocoa_notify_content_loaded,
|
ui_companion_cocoa_notify_content_loaded,
|
||||||
ui_companion_cocoa_notify_list_pushed,
|
ui_companion_cocoa_notify_list_pushed,
|
||||||
NULL,
|
NULL,
|
||||||
|
NULL,
|
||||||
"cocoa",
|
"cocoa",
|
||||||
};
|
};
|
||||||
|
@ -502,13 +502,17 @@ static void *ui_companion_cocoatouch_init(void)
|
|||||||
static void ui_companion_cocoatouch_notify_list_pushed(void *data,
|
static void ui_companion_cocoatouch_notify_list_pushed(void *data,
|
||||||
file_list_t *list, file_list_t *menu_list)
|
file_list_t *list, file_list_t *menu_list)
|
||||||
{
|
{
|
||||||
(void)data;
|
RetroArch_iOS *ap = (RetroArch_iOS *)apple_platform;
|
||||||
(void)list;
|
|
||||||
(void)menu_list;
|
|
||||||
|
|
||||||
RetroArch_iOS *ap = (RetroArch_iOS *)apple_platform;
|
if (ap)
|
||||||
|
[ap mainMenuRefresh];
|
||||||
|
}
|
||||||
|
|
||||||
if (ap)
|
static void ui_companion_cocoatouch_notify_refresh(void *data)
|
||||||
|
{
|
||||||
|
RetroArch_iOS *ap = (RetroArch_iOS *)apple_platform;
|
||||||
|
|
||||||
|
if (ap)
|
||||||
[ap mainMenuRefresh];
|
[ap mainMenuRefresh];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -531,6 +535,7 @@ const ui_companion_driver_t ui_companion_cocoatouch = {
|
|||||||
ui_companion_cocoatouch_event_command,
|
ui_companion_cocoatouch_event_command,
|
||||||
ui_companion_cocoatouch_notify_content_loaded,
|
ui_companion_cocoatouch_notify_content_loaded,
|
||||||
ui_companion_cocoatouch_notify_list_pushed,
|
ui_companion_cocoatouch_notify_list_pushed,
|
||||||
|
ui_companion_cocoatouch_notify_refresh,
|
||||||
ui_companion_cocoatouch_render_messagebox,
|
ui_companion_cocoatouch_render_messagebox,
|
||||||
"cocoatouch",
|
"cocoatouch",
|
||||||
};
|
};
|
||||||
|
@ -86,5 +86,6 @@ const ui_companion_driver_t ui_companion_null = {
|
|||||||
ui_companion_null_notify_content_loaded,
|
ui_companion_null_notify_content_loaded,
|
||||||
ui_companion_null_notify_list_pushed,
|
ui_companion_null_notify_list_pushed,
|
||||||
NULL,
|
NULL,
|
||||||
|
NULL,
|
||||||
"null",
|
"null",
|
||||||
};
|
};
|
||||||
|
@ -131,5 +131,6 @@ const ui_companion_driver_t ui_companion_qt = {
|
|||||||
ui_companion_qt_notify_content_loaded,
|
ui_companion_qt_notify_content_loaded,
|
||||||
ui_companion_qt_notify_list_pushed,
|
ui_companion_qt_notify_list_pushed,
|
||||||
NULL,
|
NULL,
|
||||||
|
NULL,
|
||||||
"qt",
|
"qt",
|
||||||
};
|
};
|
||||||
|
@ -41,6 +41,7 @@ typedef struct ui_companion_driver
|
|||||||
void (*event_command)(void *data, enum event_command action);
|
void (*event_command)(void *data, enum event_command action);
|
||||||
void (*notify_content_loaded)(void *data);
|
void (*notify_content_loaded)(void *data);
|
||||||
void (*notify_list_loaded)(void *data, file_list_t *list, file_list_t *menu_list);
|
void (*notify_list_loaded)(void *data, file_list_t *list, file_list_t *menu_list);
|
||||||
|
void (*notify_refresh)(void *data);
|
||||||
void (*render_messagebox)(const char *msg);
|
void (*render_messagebox)(const char *msg);
|
||||||
const char *ident;
|
const char *ident;
|
||||||
} ui_companion_driver_t;
|
} ui_companion_driver_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user