2024-05-11 23:24:13 +02:00
|
|
|
package sblupdatemgr
|
|
|
|
|
|
|
|
|
|
import "core:c"
|
|
|
|
|
|
|
|
|
|
foreign import sblupdatemgr "system:SceSblUpdateMgr_stub"
|
|
|
|
|
|
|
|
|
|
SCE_UPDATE_MODE_SWU_GUI :: 0x10
|
|
|
|
|
SCE_UPDATE_MODE_SWU_CUI :: 0x30
|
|
|
|
|
|
|
|
|
|
SceUpdateMode :: c.char
|
|
|
|
|
|
2024-05-13 16:04:23 +02:00
|
|
|
sceSblSsUpdateMgrGetBootMode :: sceSblUsGetUpdateMode
|
|
|
|
|
sceSblSsUpdateMgrSetBootMode :: sceSblUsSetUpdateMode
|
2024-05-11 23:24:13 +02:00
|
|
|
|
|
|
|
|
foreign sblupdatemgr {
|
|
|
|
|
/**
|
|
|
|
|
* Getting system update mode on boot
|
|
|
|
|
*
|
|
|
|
|
* @param[out] mode - The pointer of SceUpdateMode variable
|
|
|
|
|
*
|
|
|
|
|
* @return 0 on success, < 0 on error.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
sceSblUsGetUpdateMode :: proc(mode: ^SceUpdateMode) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Setting system update mode on boot
|
|
|
|
|
*
|
|
|
|
|
* @param[in] mode - The update mode
|
|
|
|
|
*
|
|
|
|
|
* @return 0 on success, < 0 on error.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
sceSblUsSetUpdateMode :: proc(mode: SceUpdateMode) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
2024-05-13 16:04:23 +02:00
|
|
|
sceSblUsVerifyPup :: proc(path: cstring) -> c.int ---
|
2024-05-11 23:24:13 +02:00
|
|
|
}
|