vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceVshBridge_stub



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)
 

Enumeration Type Documentation

◆ SceVshMountId

Enumerator
SCE_VSH_MOUNT_SD0 
SCE_VSH_MOUNT_OS0 
SCE_VSH_MOUNT_VS0 
SCE_VSH_MOUNT_VD0 
SCE_VSH_MOUNT_TM0 
SCE_VSH_MOUNT_UR0 
SCE_VSH_MOUNT_UD0 
SCE_VSH_MOUNT_UX0 
SCE_VSH_MOUNT_GRO0 
SCE_VSH_MOUNT_GRW0 
SCE_VSH_MOUNT_SA0 
SCE_VSH_MOUNT_PD0 
SCE_VSH_MOUNT_IMC0 
SCE_VSH_MOUNT_XMC0 
SCE_VSH_MOUNT_UMA0 
SCE_VSH_MOUNT_LMA0 
SCE_VSH_MOUNT_LMB0 
SCE_VSH_MOUNT_MFA0 
SCE_VSH_MOUNT_MFB0 

Function Documentation

◆ _vshSblGetSystemSwVersion()

int _vshSblGetSystemSwVersion ( SceKernelFwInfo data)

Gets real system firmware information.

Parameters
[out]data- firmware information.

◆ _vshSblAimgrGetSMI()

int _vshSblAimgrGetSMI ( SceUInt32 info)

Get service/manufacturing information (factory/minimum firmware).

Parameters
[out]info- The info output pointer
Returns
0 on success, < 0 on error.

◆ _vshSblAimgrGetConsoleId()

int _vshSblAimgrGetConsoleId ( char  CID[32])

◆ _vshKernelSearchModuleByName()

SceUID _vshKernelSearchModuleByName ( const char *  module_name,
const void *  buffer 
)

Check if a module is loaded.

Parameters
[in]module_name- The module's name
[in]buffer- Set a buffer with a size of 8 bytes
Returns
the SceUID of the module on success, < 0 on error.

◆ _vshIoMount()

int _vshIoMount ( SceVshMountId  id,
const char *  path,
int  permission,
void *  buf 
)

Mount a partition.

Parameters
[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.
Returns
>= 0 on success, < 0 on error.

◆ vshIoUmount()

int vshIoUmount ( SceVshMountId  id,
int  force,
int  unk2,
int  unk3 
)

Unmount a partition.

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
Parameters
[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.
Returns
>= 0 on success, < 0 on error.

◆ vshIdStorageIsDirty()

int vshIdStorageIsDirty ( void  )

◆ vshIdStorageIsFormatted()

int vshIdStorageIsFormatted ( void  )

◆ vshIdStorageIsReadOnly()

int vshIdStorageIsReadOnly ( void  )

◆ vshIdStorageReadLeaf()

int vshIdStorageReadLeaf ( SceSize  leafnum,
void *  buf 
)
Parameters
[in]leafnum- The read target leaf number
[out]buf- The leaf data buffer pointer, size is 512 byte
Returns
0 on success, < 0 on error.

◆ vshIdStorageWriteLeaf()

int vshIdStorageWriteLeaf ( SceSize  leafnum,
const void *  buf 
)
Parameters
[in]leafnum- The write target leaf number
[in]buf- The leaf data buffer pointer, size is 512 byte
Returns
0 on success, < 0 on error.

note - Writing to leaf requires manufacturing mode.

◆ _vshNpDrmEbootSigVerify()

int _vshNpDrmEbootSigVerify ( const char *  eboot_pbp_path,
const char *  eboot_signature,
char **  eboot_signature_header 
)

Verify a eboot.pbp signature "__sce_ebootpbp".

Parameters
[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"
Returns
0 on success, < 0 on error.

◆ _vshNpDrmPspEbootVerify()

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.

Parameters
[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"
Returns
0 on success, < 0 on error.

◆ _vshNpDrmPspEbootSigGen()

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.

Parameters
[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
Returns
eboot_signature size on success, < 0 on error.

◆ _vshNpDrmEbootSigConvert()

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.

Parameters
[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
Returns
eboot_signature size on success, < 0 on error.

◆ _vshNpDrmEbootSigGenPsp()

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.

Parameters
[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
Returns
eboot_signature size on success, < 0 on error.

◆ _vshNpDrmEbootSigGenPs1()

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.

Parameters
[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
Returns
eboot_signature size on success, < 0 on error.

◆ _vshNpDrmEbootSigGenMultiDisc()

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.

Parameters
[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
Returns
eboot_signature size on success, < 0 on error.

◆ vshSblAimgrIsCEX()

int vshSblAimgrIsCEX ( void  )

◆ vshSblAimgrIsDEX()

int vshSblAimgrIsDEX ( void  )

◆ vshSblAimgrIsVITA()

int vshSblAimgrIsVITA ( void  )

◆ vshSblAimgrIsGenuineVITA()

int vshSblAimgrIsGenuineVITA ( void  )

◆ vshSblAimgrIsDolce()

int vshSblAimgrIsDolce ( void  )

◆ vshSblAimgrIsGenuineDolce()

int vshSblAimgrIsGenuineDolce ( void  )

◆ vshSblAimgrIsTest()

int vshSblAimgrIsTest ( void  )

◆ vshSblAimgrIsTool()

int vshSblAimgrIsTool ( void  )

◆ vshSblSsIsDevelopmentMode()

int vshSblSsIsDevelopmentMode ( void  )

◆ vshSysconHasWWAN()

int vshSysconHasWWAN ( void  )

◆ vshSysconIsDownLoaderMode()

int vshSysconIsDownLoaderMode ( void  )

◆ vshSysconIsIduMode()

int vshSysconIsIduMode ( void  )

◆ vshSysconIsMCEmuCapable()

int vshSysconIsMCEmuCapable ( void  )

◆ vshSysconIsShowMode()

int vshSysconIsShowMode ( void  )

◆ vshSysconIduModeSet()

int vshSysconIduModeSet ( void  )

◆ vshSysconIduModeClear()

int vshSysconIduModeClear ( void  )

◆ vshSysconShowModeSet()

int vshSysconShowModeSet ( void  )

◆ vshSysconShowModeClear()

int vshSysconShowModeClear ( void  )

◆ vshMemoryCardGetCardInsertState()

int vshMemoryCardGetCardInsertState ( void  )

◆ vshRemovableMemoryGetCardInsertState()

int vshRemovableMemoryGetCardInsertState ( void  )

◆ vshMsifGetMsInfo()

int vshMsifGetMsInfo ( SceMsInfo info)