mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(VITA) Make salamander load args
This commit is contained in:
parent
57f155dbc0
commit
20c580bcf8
@ -335,8 +335,10 @@ static void frontend_psp_exec(const char *path, bool should_load_game)
|
|||||||
char argp[512] = {0};
|
char argp[512] = {0};
|
||||||
SceSize args = 0;
|
SceSize args = 0;
|
||||||
|
|
||||||
|
#if !defined(VITA)
|
||||||
strlcpy(argp, eboot_path, sizeof(argp));
|
strlcpy(argp, eboot_path, sizeof(argp));
|
||||||
args = strlen(argp) + 1;
|
args = strlen(argp) + 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef IS_SALAMANDER
|
#ifndef IS_SALAMANDER
|
||||||
if (should_load_game && !path_is_empty(RARCH_PATH_CONTENT))
|
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);
|
RARCH_LOG("Attempt to load executable: [%s].\n", path);
|
||||||
#if defined(VITA)
|
#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
|
#else
|
||||||
exitspawn_kernel(path, args, argp);
|
exitspawn_kernel(path, args, argp);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user