(PSP) Hook up frontend platform driver - implement process_args

and not exec function
This commit is contained in:
twinaphex 2014-02-12 18:17:54 +01:00
parent ad68ce4c91
commit b724851e93
2 changed files with 9 additions and 3 deletions

View File

@ -38,6 +38,9 @@ static const frontend_ctx_driver_t *frontend_ctx_drivers[] = {
#endif
#if defined(ANDROID)
&frontend_ctx_android,
#endif
#if defined(PSP)
&frontend_ctx_psp,
#endif
NULL // zero length array is not valid
};

View File

@ -102,8 +102,11 @@ static void system_deinit(void *data)
sceKernelExitGame();
}
static void system_exec(const char *path, bool should_load_game)
static int psp_process_args(int argc, char *argv[], void *args)
{
(void)argc;
(void)argv;
(void)args;
#if 0
char path[256];
snprintf(path, sizeof(path), "%s%s", default_paths.port_dir, "dkc.sfc");
@ -118,9 +121,9 @@ const frontend_ctx_driver_t frontend_ctx_psp = {
system_init, /* init */
system_deinit, /* deinit */
NULL, /* exitspawn */
NULL, /* process_args */
psp_process_args, /* process_args */
NULL, /* process_events */
system_exec, /* exec */
NULL, /* exec */
NULL, /* shutdown */
"psp",
};