mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Merge pull request #3750 from frangarcj/master
(VITA) Make salamander load args
This commit is contained in:
commit
9401e95607
@ -335,8 +335,10 @@ static void frontend_psp_exec(const char *path, bool should_load_game)
|
||||
char argp[512] = {0};
|
||||
SceSize args = 0;
|
||||
|
||||
#if !defined(VITA)
|
||||
strlcpy(argp, eboot_path, sizeof(argp));
|
||||
args = strlen(argp) + 1;
|
||||
#endif
|
||||
|
||||
#ifndef IS_SALAMANDER
|
||||
if (should_load_game && !path_is_empty(RARCH_PATH_CONTENT))
|
||||
@ -349,7 +351,9 @@ static void frontend_psp_exec(const char *path, bool should_load_game)
|
||||
|
||||
RARCH_LOG("Attempt to load executable: [%s].\n", path);
|
||||
#if defined(VITA)
|
||||
sceAppMgrLoadExec(path, NULL, NULL);
|
||||
RARCH_LOG("Attempt to load executable: %d [%s].\n", args, argp);
|
||||
int ret = sceAppMgrLoadExec(path, args==0? NULL : (char * const*)((const char*[]){argp, 0}), NULL);
|
||||
RARCH_LOG("Attempt to load executable: [%d].\n", ret);
|
||||
#else
|
||||
exitspawn_kernel(path, args, argp);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user