From cd10f01918b766331cc4a4b9e7cf118530709d3c Mon Sep 17 00:00:00 2001 From: TheOfficialFloW Date: Sat, 5 Nov 2016 10:45:45 +0100 Subject: Fixed number of arguments in two functions (#58) * Fixed number of arguments in two functions The number of arguments in the functions commited by @himanshugoel2797 were wrong @himanshugoel2797, reverse enginering the api properly instead of just guessing them. * Update appmgr.h * Removed underscore function --- include/user/appmgr.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/user/appmgr.h') diff --git a/include/user/appmgr.h b/include/user/appmgr.h index 1b07446..e6fffaa 100644 --- a/include/user/appmgr.h +++ b/include/user/appmgr.h @@ -56,11 +56,12 @@ typedef struct SceAppMgrSystemEvent { typedef struct SceAppMgrAppState SceAppMgrAppState; // Missing struct typedef struct SceAppMgrExecOptParam SceAppMgrExecOptParam; // Missing struct +typedef struct SceAppMgrLaunchAppOptParam SceAppMgrLaunchAppOptParam; // Missing struct #define SCE_APPMGR_MAX_APP_NAME_LENGTH (31) //! name: The Title ID of the application -int _sceAppMgrDestroyAppByName(char *name); +int sceAppMgrDestroyAppByName(char *name); int _sceAppMgrGetAppState(SceAppMgrAppState *appState, uint32_t len, uint32_t version); @@ -98,7 +99,8 @@ int sceAppMgrLoadExec(const char *appPath, char * const argv[], int sceAppMgrLaunchAppByUri(int flags, char *uri); //! name: The Title ID of the application -int sceAppMgrLaunchAppByName2(char *name); +//! param: The parameter passed to the application which can be retrieved with sceAppMgrGetAppParam +int sceAppMgrLaunchAppByName2(const char *name, const char *param, SceAppMgrLaunchAppOptParam *optParam); //! id: 100 (photo0), 101 (friends), 102 (messages), 103 (near), 105 (music), 108 (calendar) int sceAppMgrAppDataMount(int id, char *mount_point); -- cgit v1.2.3