From 6e552e04015fffdf801a36731cec620bc195b017 Mon Sep 17 00:00:00 2001 From: Reiko Asakura Date: Tue, 11 Aug 2020 16:47:22 -0400 Subject: Use SCE_PSP2_SDK_VERSION for _sceSharedFbOpen This makes no practical difference because _sceSharedFbOpen masks the version with 0xFFFF0000, but ScePaf uses the full version number. --- include/user/appmgr.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include/user') diff --git a/include/user/appmgr.h b/include/user/appmgr.h index 49f8bad..729dcd7 100644 --- a/include/user/appmgr.h +++ b/include/user/appmgr.h @@ -255,7 +255,7 @@ int sceAppMgrGetRunningAppIdListForShell(SceUID *appIds, int count); * @param[out] appState - State of the application * @param[in] len - sizeof(SceAppMgrState) * @param[in] version - Version (?) - + * @return 0 on success, < 0 on error. */ int _sceAppMgrGetAppState(SceAppMgrAppState *appState, SceSize len, uint32_t version); @@ -264,7 +264,7 @@ int _sceAppMgrGetAppState(SceAppMgrAppState *appState, SceSize len, uint32_t ver * Receive system event * * @param[out] systemEvent - Received system event - + * @return 0 on success, < 0 on error. */ int sceAppMgrReceiveSystemEvent(SceAppMgrSystemEvent *systemEvent); @@ -503,7 +503,7 @@ 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). + * 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 @@ -512,13 +512,13 @@ int sceAppMgrGetRawPath(char *path, char *mount_point, char *unk); * @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]); @@ -541,7 +541,7 @@ SceUID _sceSharedFbOpen(int index, SceUInt32 buildVersion); static __inline__ SceUID sceSharedFbOpen(int index) { - return _sceSharedFbOpen(index, _SCE_APPMGR_VERSION); + return _sceSharedFbOpen(index, SCE_PSP2_SDK_VERSION); } int sceSharedFbClose(SceUID fbId); -- cgit v1.2.3