diff options
Diffstat (limited to 'include/user')
-rw-r--r-- | include/user/sblupdatemgr.h | 42 |
1 files changed, 42 insertions, 0 deletions
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 */ |