Add content_loaded callback to frontend context driver

This commit is contained in:
twinaphex 2014-10-17 03:55:16 +02:00
parent 3b2a6c9df2
commit d3b27fd888
9 changed files with 15 additions and 2 deletions

View File

@ -59,12 +59,13 @@ typedef struct frontend_ctx_driver
void (*exitspawn)(char *core_path, size_t sizeof_core_path);
process_args_t process_args;
int (*process_events)(void *data);
int (*process_events)(void *data);
void (*exec)(const char *, bool);
void (*set_fork)(bool exitspawn, bool start_game);
void (*shutdown)(bool);
void (*get_name)(char *, size_t);
int (*get_rating)(void);
int (*get_rating)(void);
void (*content_loaded)(void);
const char *ident;

View File

@ -893,5 +893,6 @@ const frontend_ctx_driver_t frontend_ctx_android = {
frontend_android_shutdown, /* shutdown */
frontend_android_get_name, /* get_name */
frontend_android_get_rating, /* get_rating */
NULL, /* load_content */
"android",
};

View File

@ -177,6 +177,10 @@ static void frontend_apple_get_environment_settings(int *argc, char *argv[],
extern void apple_rarch_exited(void);
static void frontend_apple_load_content(void)
{
}
static void frontend_apple_shutdown(bool unused)
{
apple_rarch_exited();
@ -200,5 +204,6 @@ const frontend_ctx_driver_t frontend_ctx_apple = {
frontend_apple_shutdown, /* shutdown */
NULL, /* get_name */
frontend_apple_get_rating, /* get_rating */
frontend_apple_load_content, /* load_content */
"apple",
};

View File

@ -374,5 +374,6 @@ const frontend_ctx_driver_t frontend_ctx_gx = {
NULL, /* shutdown */
NULL, /* get_name */
frontend_gx_get_rating, /* get_rating */
NULL, /* load_content */
"gx",
};

View File

@ -33,5 +33,6 @@ const frontend_ctx_driver_t frontend_ctx_null = {
NULL, /* shutdown */
NULL, /* get_name */
NULL, /* get_rating */
NULL, /* load_content */
"null",
};

View File

@ -453,5 +453,6 @@ const frontend_ctx_driver_t frontend_ctx_ps3 = {
NULL, /* shutdown */
NULL, /* get_name */
frontend_ps3_get_rating, /* get_rating */
NULL, /* load_content */
"ps3",
};

View File

@ -244,5 +244,6 @@ const frontend_ctx_driver_t frontend_ctx_psp = {
frontend_psp_shutdown, /* shutdown */
NULL, /* get_name */
frontend_psp_get_rating, /* get_rating */
NULL, /* load_content */
"psp",
};

View File

@ -71,5 +71,6 @@ const frontend_ctx_driver_t frontend_ctx_qnx = {
frontend_qnx_shutdown, /* shutdown */
NULL, /* get_name */
frontend_qnx_get_rating, /* get_rating */
NULL, /* load_content */
"qnx",
};

View File

@ -345,5 +345,6 @@ const frontend_ctx_driver_t frontend_ctx_xdk = {
NULL, /* shutdown */
NULL, /* get_name */
frontend_xdk_get_rating, /* get_rating */
NULL, /* load_content */
"xdk",
};