update to latest vita-headers

This commit is contained in:
2025-06-22 21:02:09 +02:00
parent e0258aa945
commit 3c273d6daf
18 changed files with 1171 additions and 28 deletions
+20 -12
View File
@@ -36,25 +36,33 @@ foreign vshbridge {
_vshKernelSearchModuleByName :: proc(module_name: cstring, buffer: rawptr) -> sce.UID ---
/**
* @param[in] id - mount id
* @param[in] path - mount path
* @param[in] permission - 1/RO 2/RW
* @param[in] buf - work buffer
* @brief Mount a partition.
*
* @return 0 >= on success, < 0 on error.
* @param[in] id - Mount ID (one of ::SceVshMountId)
* @param[in] path - Mount path (optional, can be NULL)
* @param[in] permission - `1` for read-only, `2` for read-write.
* @param[in] buf - Work buffer. Allocate `0x100` and (important!) fill with `0`.
*
* @return `>= 0` on success, `< 0` on error.
*/
_vshIoMount :: proc(id: c.int, path: cstring, permission: c.int, buf: rawptr) -> c.int ---
_vshIoMount :: proc(id: SceVshMountId, path: cstring, permission: c.int, buf: rawptr) -> c.int ---
/**
* @param[in] id - mount id
* @param[in] force - Set to 1 to force umount
* @param[in] unk2 - Unknown, set 0
* @param[in] unk3 - Unknown, set 0
* @brief Unmount a partition.
*
* @return 0 >= on success, < 0 on error.
* @warning Unmounting system partitions can cause system instability, even if
* you remount them back. For example, FIOS overlays used by the Shell
* won't get recreated and would effectively render the Shell unusable
*
* @param[in] id - Mount ID (one of ::SceVshMountId)
* @param[in] force - `1` to force unmount, `0` otherwise.
* @param[in] unk2 - Unknown, set to `0`.
* @param[in] unk3 - Unknown, set to `0`.
*
* @return `>= 0` on success, `< 0` on error.
*/
vshIoUmount :: proc(id: c.int, force: c.int, unk2: c.int, unk3: c.int) -> c.int ---
vshIoUmount :: proc(id: SceVshMountId, force: c.int, unk2: c.int, unk3: c.int) -> c.int ---
vshIdStorageIsDirty :: proc() -> c.int ---
vshIdStorageIsFormatted :: proc() -> c.int ---