added kernel libraries bindings and cleaned up todos

This commit is contained in:
2024-05-12 16:16:15 +02:00
parent e9824cbd95
commit 8a5e2870f6
68 changed files with 3278 additions and 92 deletions
+27
View File
@@ -0,0 +1,27 @@
package idstorage
import "core:c"
import sce "../common"
foreign import idstorage "system:SceIdStorageForDriver_stub"
@(link_prefix = "ksceIdStorage")
foreign idstorage {
/**
* @param[in] leafnum - The read target leaf number
* @param[out] buf - The leaf data buffer pointer, size is 512 byte
*
* @return 0 on success, < 0 on error.
*/
ReadLeaf :: proc(leafnum: sce.Size, buf: rawptr) -> c.int ---
/**
* @param[in] leafnum - The write target leaf number
* @param[in] buf - The leaf data buffer pointer, size is 512 byte
*
* @return 0 on success, < 0 on error.
*
* note - Writing to leaf requires manufacturing mode.
*/
WriteLeaf :: proc(leafnum: sce.Size, buf: rawptr) -> c.int ---
}