diff options
author | Davee | 2019-02-17 14:50:28 +0000 |
---|---|---|
committer | Sunguk Lee | 2019-02-18 01:11:26 +0900 |
commit | 1487ee6100ae3346b799dc4130a63958f6169832 (patch) | |
tree | a73667ad7214cb8eb9f6852a6d29dc4b4bbd80ed /include/kernel/appmgr.h | |
parent | add missing status param to ksceKernelSuspendProcess (diff) | |
download | vds-libraries-1487ee6100ae3346b799dc4130a63958f6169832.tar.gz |
add ksceAppMgrLaunchAppByPath header
Diffstat (limited to 'include/kernel/appmgr.h')
-rw-r--r-- | include/kernel/appmgr.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/kernel/appmgr.h b/include/kernel/appmgr.h index 4336ca5..758c339 100644 --- a/include/kernel/appmgr.h +++ b/include/kernel/appmgr.h @@ -14,6 +14,37 @@ extern "C" { */ int sceAppMgrKillProcess(SceUID pid); +typedef struct +{ + size_t size; + unsigned int unk_4; //<! set to 0x80000000 to break on launch + unsigned int unk_8; + unsigned int unk_C; + unsigned int unk_10; + unsigned int unk_14; + unsigned int unk_18; + unsigned int unk_1C; + unsigned int unk_20; + unsigned int unk_24; + unsigned int unk_28; + unsigned int unk_2C; + unsigned int unk_30; +} SceAppMgrLaunchParam; + +/** + * @brief Launch an application for debugging + * + * @param[in] path Path to the executable to load + * @param[in] args Arguments to pass to the executable and to configure appmgr + * @param[in] arg_size The size of the args passed in + * @param[in] type Set to 0x80000000 for debugging launch + * @param[in] param pointer to launch params + * @param unk unknown, set to nullptr + * + * @return pid on success, else < 0. + */ +int sceAppMgrLaunchAppByPath(const char *path, const char *args, unsigned arg_size, unsigned int type, const SceAppMgrLaunchParam *param, void *unk); + #ifdef __cplusplus } #endif |