vitasdk
Documentation of the vitasdk
|
Exports for User.
Include the header file in your project:
Link the library to the executable:
Functions | |
int | _vshSblGetSystemSwVersion (SceKernelFwInfo *data) |
Gets real system firmware information. More... | |
int | _vshSblAimgrGetSMI (SceUInt32 *info) |
Get service/manufacturing information (factory/minimum firmware). More... | |
int | _vshSblAimgrGetConsoleId (char CID[32]) |
SceUID | _vshKernelSearchModuleByName (const char *module_name, const void *buffer) |
Check if a module is loaded. More... | |
int | _vshIoMount (SceVshMountId id, const char *path, int permission, void *buf) |
Mount a partition. More... | |
int | vshIoUmount (SceVshMountId id, int force, int unk2, int unk3) |
Unmount a partition. More... | |
int | vshIdStorageIsDirty (void) |
int | vshIdStorageIsFormatted (void) |
int | vshIdStorageIsReadOnly (void) |
int | vshIdStorageReadLeaf (SceSize leafnum, void *buf) |
int | vshIdStorageWriteLeaf (SceSize leafnum, const void *buf) |
int | _vshNpDrmEbootSigVerify (const char *eboot_pbp_path, const char *eboot_signature, char **eboot_signature_header) |
Verify a eboot.pbp signature "__sce_ebootpbp". More... | |
int | _vshNpDrmPspEbootVerify (const char *eboot_pbp_path, const char *eboot_signature, char **eboot_signature_header) |
Verify an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" from firmware <2.00. More... | |
int | _vshNpDrmPspEbootSigGen (const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature) |
Generate an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" for a PSP game - this is unused in firmware >2.00. More... | |
int | _vshNpDrmEbootSigConvert (const char *eboot_pbp_path, const void *old_eboot_signature, void *new_eboot_signature) |
Convert an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" to a 0x200 byte one used in firmwares >2.00. More... | |
int | _vshNpDrmEbootSigGenPsp (const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int *sw_version) |
Generate eboot.pbp signature "__sce_ebootpbp" for a PSP game. More... | |
int | _vshNpDrmEbootSigGenPs1 (const char *eboot_pbp_path, const void *eboot_sha256, void *eboot_signature, int *sw_version) |
Generate eboot.pbp signature "__sce_ebootpbp" for a single-disc PS1 game. More... | |
int | _vshNpDrmEbootSigGenMultiDisc (const char *eboot_pbp_path, const void *sce_discinfo, void *eboot_signature, int *sw_version) |
Generate eboot.pbp signature "__sce_discinfo" for a multi-disc PS1 game. More... | |
int | vshSblAimgrIsCEX (void) |
int | vshSblAimgrIsDEX (void) |
int | vshSblAimgrIsVITA (void) |
int | vshSblAimgrIsGenuineVITA (void) |
int | vshSblAimgrIsDolce (void) |
int | vshSblAimgrIsGenuineDolce (void) |
int | vshSblAimgrIsTest (void) |
int | vshSblAimgrIsTool (void) |
int | vshSblSsIsDevelopmentMode (void) |
int | vshSysconHasWWAN (void) |
int | vshSysconIsDownLoaderMode (void) |
int | vshSysconIsIduMode (void) |
int | vshSysconIsMCEmuCapable (void) |
int | vshSysconIsShowMode (void) |
int | vshSysconIduModeSet (void) |
int | vshSysconIduModeClear (void) |
int | vshSysconShowModeSet (void) |
int | vshSysconShowModeClear (void) |
int | vshMemoryCardGetCardInsertState (void) |
int | vshRemovableMemoryGetCardInsertState (void) |
int | vshMsifGetMsInfo (SceMsInfo *info) |
enum SceVshMountId |
int _vshSblGetSystemSwVersion | ( | SceKernelFwInfo * | data | ) |
Gets real system firmware information.
[out] | data | - firmware information. |
int _vshSblAimgrGetSMI | ( | SceUInt32 * | info | ) |
Get service/manufacturing information (factory/minimum firmware).
[out] | info | - The info output pointer |
int _vshSblAimgrGetConsoleId | ( | char | CID[32] | ) |
SceUID _vshKernelSearchModuleByName | ( | const char * | module_name, |
const void * | buffer | ||
) |
Check if a module is loaded.
[in] | module_name | - The module's name |
[in] | buffer | - Set a buffer with a size of 8 bytes |
int _vshIoMount | ( | SceVshMountId | id, |
const char * | path, | ||
int | permission, | ||
void * | buf | ||
) |
Mount a partition.
[in] | id | - Mount ID (one of SceVshMountId). |
[in] | path | - Mount path (optional, can be NULL). |
[in] | permission | - 1 for read-only, 2 for read-write. |
[in] | buf | - Work buffer. Allocate 0x100 and (important!) fill with 0 . |
>= 0
on success, < 0
on error. int vshIoUmount | ( | SceVshMountId | id, |
int | force, | ||
int | unk2, | ||
int | unk3 | ||
) |
Unmount a partition.
[in] | id | - Mount ID (one of SceVshMountId). |
[in] | force | - 1 to force unmount, 0 otherwise. |
[in] | unk2 | - Unknown, set to 0 . |
[in] | unk3 | - Unknown, set to 0 . |
>= 0
on success, < 0
on error. int vshIdStorageIsDirty | ( | void | ) |
int vshIdStorageIsFormatted | ( | void | ) |
int vshIdStorageIsReadOnly | ( | void | ) |
int vshIdStorageReadLeaf | ( | SceSize | leafnum, |
void * | buf | ||
) |
[in] | leafnum | - The read target leaf number |
[out] | buf | - The leaf data buffer pointer, size is 512 byte |
int vshIdStorageWriteLeaf | ( | SceSize | leafnum, |
const void * | buf | ||
) |
[in] | leafnum | - The write target leaf number |
[in] | buf | - The leaf data buffer pointer, size is 512 byte |
note - Writing to leaf requires manufacturing mode.
int _vshNpDrmEbootSigVerify | ( | const char * | eboot_pbp_path, |
const char * | eboot_signature, | ||
char ** | eboot_signature_header | ||
) |
Verify a eboot.pbp signature "__sce_ebootpbp".
[in] | eboot_pbp_path | - The pointer of the file path of the EBOOT.PBP file |
[in] | eboot_signature | - The pointer of data of __sce_ebootpbp signature. size is 0x200 |
[in] | eboot_signature_magic | - The pointer of a pointer of magic number within __sce_ebootpbp, "NPUMDSIG" or "PSISOSIG" |
int _vshNpDrmPspEbootVerify | ( | const char * | eboot_pbp_path, |
const char * | eboot_signature, | ||
char ** | eboot_signature_header | ||
) |
Verify an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" from firmware <2.00.
[in] | eboot_pbp_path | - The pointer of the file path of the EBOOT.PBP file |
[in] | eboot_signature | - The pointer of data of __sce_ebootpbp signature. size is 0x100 |
[in] | eboot_signature_magic | - The pointer of a pointer of magic number within __sce_ebootpbp, "NPUMDSIG" or "PSISOSIG" |
int _vshNpDrmPspEbootSigGen | ( | const char * | eboot_pbp_path, |
const void * | eboot_sha256, | ||
void * | eboot_signature | ||
) |
Generate an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" for a PSP game - this is unused in firmware >2.00.
[in] | eboot_pbp_path | - The pointer of the file path of the EBOOT.PBP file |
[in] | eboot_sha256 | - The pointer of SHA256 hash of first (data.psar offset + 0x1C0000) bytes into the EBOOT.PBP file |
[out] | eboot_signature | - The pointer of the output eboot signature data. size is 0x100 |
int _vshNpDrmEbootSigConvert | ( | const char * | eboot_pbp_path, |
const void * | old_eboot_signature, | ||
void * | new_eboot_signature | ||
) |
Convert an older 0x100 byte eboot.pbp signature "__sce_ebootpbp" to a 0x200 byte one used in firmwares >2.00.
[in] | eboot_pbp_path | - The pointer of the file path of the EBOOT.PBP file |
[in] | old_eboot_signature | - The pointer of old eboot signature data. size is 0x100 |
[out] | new_eboot_signature | - The pointer of new eboot signature data. size is 0x200 |
int _vshNpDrmEbootSigGenPsp | ( | const char * | eboot_pbp_path, |
const void * | eboot_sha256, | ||
void * | eboot_signature, | ||
int * | sw_version | ||
) |
Generate eboot.pbp signature "__sce_ebootpbp" for a PSP game.
[in] | eboot_pbp_path | - The pointer of the file path of the EBOOT.PBP file |
[in] | eboot_sha256 | - The pointer of SHA256 hash of first (data.psar offset + 0x1C0000) bytes into the EBOOT.PBP file |
[out] | eboot_signature | - The pointer of the output eboot signature data. size is 0x200 |
[in] | sw_version | - The pointer of the minimum firmware version the signature can be used on. cannot be lower than current firmware |
int _vshNpDrmEbootSigGenPs1 | ( | const char * | eboot_pbp_path, |
const void * | eboot_sha256, | ||
void * | eboot_signature, | ||
int * | sw_version | ||
) |
Generate eboot.pbp signature "__sce_ebootpbp" for a single-disc PS1 game.
[in] | eboot_pbp_path | - The pointer of the file path of the EBOOT.PBP file |
[in] | eboot_sha256 | - The pointer of SHA256 hash of first (data.psar offset + 0x1C0000) bytes into the EBOOT.PBP file |
[out] | eboot_signature | - The pointer of the output eboot signature data. size is 0x200 |
[in] | sw_version | - The pointer of the minimum firmware version the signature can be used on. cannot be lower than current firmware |
int _vshNpDrmEbootSigGenMultiDisc | ( | const char * | eboot_pbp_path, |
const void * | sce_discinfo, | ||
void * | eboot_signature, | ||
int * | sw_version | ||
) |
Generate eboot.pbp signature "__sce_discinfo" for a multi-disc PS1 game.
[in] | eboot_pbp_path | - The pointer of the file path of the EBOOT.PBP file |
[in] | sce_discinfo | - The pointer of contents of vs0:/app/NPXS10028/__sce_discinfo |
[out] | eboot_signature | - The pointer of the output eboot signature data. size is 0x100 |
[in] | sw_version | - The pointer of the minimum firmware version the signature can be used on. cannot be lower than current firmware |
int vshSblAimgrIsCEX | ( | void | ) |
int vshSblAimgrIsDEX | ( | void | ) |
int vshSblAimgrIsVITA | ( | void | ) |
int vshSblAimgrIsGenuineVITA | ( | void | ) |
int vshSblAimgrIsDolce | ( | void | ) |
int vshSblAimgrIsGenuineDolce | ( | void | ) |
int vshSblAimgrIsTest | ( | void | ) |
int vshSblAimgrIsTool | ( | void | ) |
int vshSblSsIsDevelopmentMode | ( | void | ) |
int vshSysconHasWWAN | ( | void | ) |
int vshSysconIsDownLoaderMode | ( | void | ) |
int vshSysconIsIduMode | ( | void | ) |
int vshSysconIsMCEmuCapable | ( | void | ) |
int vshSysconIsShowMode | ( | void | ) |
int vshSysconIduModeSet | ( | void | ) |
int vshSysconIduModeClear | ( | void | ) |
int vshSysconShowModeSet | ( | void | ) |
int vshSysconShowModeClear | ( | void | ) |
int vshMemoryCardGetCardInsertState | ( | void | ) |
int vshRemovableMemoryGetCardInsertState | ( | void | ) |
int vshMsifGetMsInfo | ( | SceMsInfo * | info | ) |