Skip to content

Commit

Permalink
(PSP) Hook up frontend platform driver - implement process_args
Browse files Browse the repository at this point in the history
and not exec function
  • Loading branch information
inactive123 committed Feb 12, 2014
1 parent ad68ce4 commit b724851
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions frontend/frontend_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
9 changes: 6 additions & 3 deletions frontend/platform/platform_psp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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",
};

0 comments on commit b724851

Please sign in to comment.