summaryrefslogtreecommitdiff
path: root/include/kernel
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/kernel/appmgr.h31
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