From 9063c91b480e44d9b62cdf2314818d2c3bacf29f Mon Sep 17 00:00:00 2001 From: devnoname120 Date: Fri, 19 Jul 2019 23:52:57 +0200 Subject: Add _sceAppMgrGetRawPath(OfApp0ByAppIdForShell) --- include/user/appmgr.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include/user/appmgr.h') diff --git a/include/user/appmgr.h b/include/user/appmgr.h index 3cb2f2a..ae0f6c9 100644 --- a/include/user/appmgr.h +++ b/include/user/appmgr.h @@ -467,6 +467,27 @@ int sceAppMgrConvertVs0UserDrivePath(char *path, char *mount_point, int unk); */ int sceAppMgrGetRawPath(char *path, char *mount_point, char *unk); +/** + * Resolve a path to the corresponding true path (uses ::sceFiosKernelOverlayResolveSync underneath). + * + * @param[in] path - Path to convert (e.g. app0:) + * @param[out] resolved_path - True resolved path + * @param[in] unk - Unknown, provide an empty buffer + * + * @return 0 on success, < 0 on error. + */ +int _sceAppMgrGetRawPath(char *path, char *resolved_path, int resolved_path_size, char unk[16]); + +/** + * Get the real/resolved path of app0: (where it's actually mounted) + * + * @param[in] appId - Use -2 for the current application + * @param[out] resolved_path - Buffer that will hold the resolved path. It should have enough room to hold 292 characters or it will buffer overflow (noname120). + * + * @return 0 on success. + */ +int _sceAppMgrGetRawPathOfApp0ByAppIdForShell(int appId, char resolved_path[292]); + #ifdef __cplusplus } #endif -- cgit v1.2.3