From aab77d28bb20fede004b4d11574fa6e85cd28b6d Mon Sep 17 00:00:00 2001 From: Princess of Sleeping Date: Fri, 30 Oct 2020 22:11:40 +0900 Subject: Add functions in SceSblSsUpdateMgr --- include/user/sblupdatemgr.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 include/user/sblupdatemgr.h (limited to 'include/user') diff --git a/include/user/sblupdatemgr.h b/include/user/sblupdatemgr.h new file mode 100644 index 0000000..d936565 --- /dev/null +++ b/include/user/sblupdatemgr.h @@ -0,0 +1,42 @@ +/* + Vita Development Suite Libraries +*/ + +#ifndef _VDSUITE_USER_SBLUPDATEMGR_H +#define _VDSUITE_USER_SBLUPDATEMGR_H + +typedef char SceUpdateMode; + +#define SCE_UPDATE_MODE_SWU_GUI 0x10 +#define SCE_UPDATE_MODE_SWU_CUI 0x30 + +/** + * Getting system update mode on boot + * + * @param[out] mode - The pointer of SceUpdateMode variable + * + * @return 0 on success, < 0 on error. + */ +int sceSblUsGetUpdateModeForUser(SceUpdateMode *mode); + +/** + * Setting system update mode on boot + * + * @param[in] mode - The update mode + * + * @return 0 on success, < 0 on error. + */ +int sceSblUsSetUpdateModeForUser(SceUpdateMode mode); + +/** + * Verify PUP + * + * @param[in] path - The PUP path + * + * @return 0 on success, < 0 on error. + * + * note - If verify CEX PUP on Devkit system, got error. + */ +int sceSblUsVerifyPupForUser(const char *path); + +#endif /* _VDSUITE_USER_SBLUPDATEMGR_H */ -- cgit v1.2.3