vitasdk
Documentation of the vitasdk
|
Exports for User.
Include the header file in your project:
Link the library to the executable:
Functions | |
VITASDK_BUILD_ASSERT_EQ (0x40, SceAppMgrSystemEvent) | |
VITASDK_BUILD_ASSERT_EQ (0x4C, SceAppMgrSaveDataData) | |
VITASDK_BUILD_ASSERT_EQ (0x44, SceAppMgrSaveDataDataDelete) | |
VITASDK_BUILD_ASSERT_EQ (0x418, SceAppMgrSaveDataSlot) | |
VITASDK_BUILD_ASSERT_EQ (0x18, SceAppMgrSaveDataSlotDelete) | |
VITASDK_BUILD_ASSERT_EQ (0x80, SceAppMgrAppState) | |
VITASDK_BUILD_ASSERT_EQ (0x88, SceAppMgrBudgetInfo) | |
VITASDK_BUILD_ASSERT_EQ (0x100, SceAppMgrLoadExecOptParam) | |
int | sceAppMgrSaveDataDataSave (SceAppMgrSaveDataData *data) |
Save data on savedata0: partition. More... | |
int | sceAppMgrSaveDataDataRemove (SceAppMgrSaveDataDataDelete *data) |
Remove data on savedata0: partition. More... | |
int | sceAppMgrSaveDataSlotCreate (SceAppMgrSaveDataSlot *data) |
Create a savedata slot. More... | |
int | sceAppMgrSaveDataSlotGetParam (SceAppMgrSaveDataSlot *data) |
Get current param of a savedata slot. More... | |
int | sceAppMgrSaveDataSlotSetParam (SceAppMgrSaveDataSlot *data) |
Set current param of a savedata slot. More... | |
int | sceAppMgrSaveDataSlotDelete (SceAppMgrSaveDataSlotDelete *data) |
Delete a savedata slot. More... | |
int | sceAppMgrGetIdByName (SceUID *pid, const char *name) |
Get Process ID by Title ID. More... | |
int | sceAppMgrGetNameById (SceUID pid, char *name) |
Get Title ID by Process ID. More... | |
int | sceAppMgrDestroyOtherApp (void) |
Destroy other apps. More... | |
int | sceAppMgrDestroyAppByName (const char *name) |
Destroy an application by Title ID. More... | |
int | sceAppMgrDestroyAppByAppId (SceInt32 appId) |
Destroy an application by Application ID. More... | |
SceUID | sceAppMgrGetProcessIdByAppIdForShell (SceInt32 appId) |
Get PID of an application for Shell. More... | |
int | sceAppMgrGetRunningAppIdListForShell (SceInt32 *appIds, int count) |
Get a list of running applications. More... | |
int | _sceAppMgrGetAppState (SceAppMgrAppState *appState, SceSize len, uint32_t version) |
Get an application state. More... | |
int | sceAppMgrReceiveSystemEvent (SceAppMgrSystemEvent *systemEvent) |
Receive system event. More... | |
int | sceAppMgrGetAppParam (char *param) |
Copies app param to an array. More... | |
int | sceAppMgrAcquireBgmPort (void) |
Obtains the BGM port, even when it is not in front. More... | |
int | sceAppMgrReleaseBgmPort (void) |
Release acquired BGM port. More... | |
int | sceAppMgrSetInfobarState (SceAppMgrInfoBarVisibility visibility, SceAppMgrInfoBarColor color, SceAppMgrInfoBarTransparency transparency) |
Set infobar state. More... | |
int | sceAppMgrLoadExec (const char *appPath, char *const argv[], const SceAppMgrExecOptParam *optParam) |
Load and start a SELF executable. More... | |
int | sceAppMgrLaunchAppByUri (int flags, const char *uri) |
Start an application by URI. More... | |
int | sceAppMgrLaunchAppByName2 (const char *name, const char *param, SceAppMgrLaunchAppOptParam *optParam) |
Start an application by Title ID. More... | |
int | sceAppMgrLaunchAppByName (int flags, const char *name, const char *param) |
Start an Application by Title ID. More... | |
SceUID | sceAppMgrLaunchAppByName2ForShell (const char *name, const char *param, SceAppMgrLaunchAppOptParam *optParam) |
Start an application by Title ID for Shell. More... | |
int | sceAppMgrGameDataMount (const char *app_path, const char *patch_path, const char *rif_path, char *mount_point) |
Mount game data. More... | |
int | sceAppMgrAppDataMount (int id, const char *mount_point) |
Mount application data. More... | |
int | sceAppMgrAppDataMountById (int id, const char *titleid, const char *mount_point) |
Mount application data by Title ID. More... | |
int | sceAppMgrAppParamGetString (int pid, int param, char *string, SceSize length) |
Get application params from SFO descriptor. More... | |
int | sceAppMgrGetDevInfo (const char *dev, uint64_t *max_size, uint64_t *free_size) |
Get device info. More... | |
int | sceAppMgrMmsMount (int id, const char *mount_point) |
Mount application data (PSPEmu) More... | |
int | sceAppMgrPspSaveDataRootMount (const char *mount_point) |
Mount PSPEmu virtual memory stick. More... | |
int | sceAppMgrWorkDirMount (int id, const char *mount_point) |
Mount working directory. More... | |
int | sceAppMgrWorkDirMountById (int id, const char *titleid, const char *mount_point) |
Mount working directory by Title ID. More... | |
int | sceAppMgrUmount (const char *mount_point) |
Unmount a mountpoint. More... | |
int | sceAppMgrConvertVs0UserDrivePath (char *path, char *mount_point, int unk) |
Convert vs0 path string to a new one usable by applications. More... | |
int | sceAppMgrGetRawPath (char *path, char *resolved_path, int resolved_path_size) |
Get raw path for a given path. More... | |
int | sceAppMgrGetRawPathOfApp0ByAppIdForShell (int appId, char resolved_path[292]) |
Get the real/resolved path of app0: (where it's actually mounted) More... | |
int | sceAppMgrGetBudgetInfo (SceAppMgrBudgetInfo *info) |
Get memory budget info for a running system application. More... | |
VITASDK_BUILD_ASSERT_EQ (0x428, SceAppMgrCoredumpState) | |
int | sceAppMgrGetCoredumpStateForShell (SceAppMgrCoredumpState *state) |
Get current coredump state for shell. More... | |
SceInt32 | sceAppMgrDrmOpen (const SceAppMgrDrmOpenParam *param) |
SceInt32 | sceAppMgrGetAppInfo (const char *unk, SceAppMgrAppState *state) |
Get AppInfo via syscall directly. More... | |
Typedefs | |
typedef struct SceAppMgrExecOptParam | SceAppMgrExecOptParam |
typedef struct SceAppMgrLaunchAppOptParam | SceAppMgrLaunchAppOptParam |
typedef struct SceAppMgrDrmOpenParam | SceAppMgrDrmOpenParam |
typedef struct SceAppMgrAppInfo | SceAppMgrAppInfo |
Macros | |
#define | SCE_APPMGR_MAX_APP_NAME_LENGTH (31) |
struct SceAppMgrSystemEvent |
Data Fields | ||
---|---|---|
int | systemEvent | One of SceAppMgrSystemEventType. |
uint8_t | reserved[60] | Reserved data. |
struct SceAppMgrSaveDataData |
Data Fields | ||
---|---|---|
int | size | Must be 0x4C. |
unsigned int | slotId | Save slot to use. |
SceAppUtilSaveDataSlotParam * | slotParam | Save slot params. |
uint8_t | reserved[32] | Reserved data. |
SceAppUtilSaveDataFile * | files | Pointer to an array of files. |
int | fileNum | Number of files to save. |
SceAppUtilSaveDataMountPoint | mountPoint | Savedata mountpoint. |
unsigned int * | requiredSizeKB | Required size in KBs. |
int | unk_0x48 |
struct SceAppMgrSaveDataDataDelete |
Data Fields | ||
---|---|---|
int | size | Must be 0x44. |
unsigned int | slotId | Save slot to use. |
SceAppUtilSaveDataSlotParam * | slotParam | Save slot params. |
uint8_t | reserved[32] | Reserved data. |
SceAppUtilSaveDataFile * | files | Pointer to an array of files. |
int | fileNum | Number of files to delete. |
SceAppUtilSaveDataMountPoint | mountPoint | Savedata mountpoint. |
struct SceAppMgrSaveDataSlot |
Data Fields | ||
---|---|---|
int | size | Must be 0x418. |
unsigned int | slotId | Save slot to use. |
SceAppUtilSaveDataSlotParam | slotParam | Save slot params. |
uint8_t | reserved[116] | Reserved data. |
SceAppUtilSaveDataMountPoint | mountPoint | Savedata mountpoint. |
uint8_t | reserved2[0x40] |
struct SceAppMgrSaveDataSlotDelete |
Data Fields | ||
---|---|---|
int | size | Must be 0x18. |
unsigned int | slotId | Save slot to use. |
SceAppUtilSaveDataMountPoint | mountPoint | Savedata mountpoint. |
struct SceAppMgrAppState |
struct SceAppMgrBudgetInfo |
Data Fields | ||
---|---|---|
int | size | Must be 0x88. |
int | app_mode | One of SceAppMgrApplicationMode. |
int | unk0 | Unknown Data. |
unsigned int | total_user_rw_mem | Total amount of accessible USER_RW memory. |
unsigned int | free_user_rw | Free amount of accessible USER_RW memory. |
SceBool | extra_mem_allowed | Flag for extra memory accessibility. |
int | unk1 | Unknown Data. |
unsigned int | total_extra_mem | Total amount of accessible extra memory. |
unsigned int | free_extra_mem | Free amount of accessible extra memory. |
int | unk2[2] | Unknown Data. |
unsigned int | total_phycont_mem | Total amount of accessible physically contiguous memory. |
unsigned int | free_phycont_mem | Free amount of accessible physically contiguous memory. |
int | unk3[10] | Unknown Data. |
unsigned int | total_cdram_mem | Total amount of accessible CDRAM memory. |
unsigned int | free_cdram_mem | Free amount of accessible CDRAM memory. |
int | reserved[9] | Reserved data. |
struct SceAppMgrCoredumpState |
#define SCE_APPMGR_MAX_APP_NAME_LENGTH (31) |
typedef struct SceAppMgrExecOptParam SceAppMgrExecOptParam |
typedef struct SceAppMgrLaunchAppOptParam SceAppMgrLaunchAppOptParam |
typedef struct SceAppMgrDrmOpenParam SceAppMgrDrmOpenParam |
typedef struct SceAppMgrAppInfo SceAppMgrAppInfo |
enum SceAppMgrErrorCode |
VITASDK_BUILD_ASSERT_EQ | ( | 0x40 | , |
SceAppMgrSystemEvent | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x4C | , |
SceAppMgrSaveDataData | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x44 | , |
SceAppMgrSaveDataDataDelete | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x418 | , |
SceAppMgrSaveDataSlot | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x18 | , |
SceAppMgrSaveDataSlotDelete | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x80 | , |
SceAppMgrAppState | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x88 | , |
SceAppMgrBudgetInfo | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x100 | , |
SceAppMgrLoadExecOptParam | |||
) |
int sceAppMgrSaveDataDataSave | ( | SceAppMgrSaveDataData * | data | ) |
Save data on savedata0: partition.
[in] | data | - Data to save |
int sceAppMgrSaveDataDataRemove | ( | SceAppMgrSaveDataDataDelete * | data | ) |
Remove data on savedata0: partition.
[in] | data | - Data to remove |
int sceAppMgrSaveDataSlotCreate | ( | SceAppMgrSaveDataSlot * | data | ) |
Create a savedata slot.
[in] | data | - Slot data |
int sceAppMgrSaveDataSlotGetParam | ( | SceAppMgrSaveDataSlot * | data | ) |
Get current param of a savedata slot.
[out] | data | - Slot data |
int sceAppMgrSaveDataSlotSetParam | ( | SceAppMgrSaveDataSlot * | data | ) |
Set current param of a savedata slot.
[in] | data | - Slot data |
int sceAppMgrSaveDataSlotDelete | ( | SceAppMgrSaveDataSlotDelete * | data | ) |
Delete a savedata slot.
[in] | data | - Slot data |
int sceAppMgrGetIdByName | ( | SceUID * | pid, |
const char * | name | ||
) |
Get Process ID by Title ID.
[out] | pid | - Process ID |
[in] | name | - Title ID |
int sceAppMgrGetNameById | ( | SceUID | pid, |
char * | name | ||
) |
Get Title ID by Process ID.
[in] | pid | - Process ID |
[out] | name | - Title ID |
int sceAppMgrDestroyOtherApp | ( | void | ) |
Destroy other apps.
int sceAppMgrDestroyAppByName | ( | const char * | name | ) |
Destroy an application by Title ID.
[in] | name | - Title ID of the application |
int sceAppMgrDestroyAppByAppId | ( | SceInt32 | appId | ) |
Destroy an application by Application ID.
[in] | appId | - Application ID of the application |
Get PID of an application for Shell.
[in] | appId | - Application ID of the application |
int sceAppMgrGetRunningAppIdListForShell | ( | SceInt32 * | appIds, |
int | count | ||
) |
Get a list of running applications.
[out] | appIds | - Array of running application IDs |
[in] | count | - Max number of running applications to search |
int _sceAppMgrGetAppState | ( | SceAppMgrAppState * | appState, |
SceSize | len, | ||
uint32_t | version | ||
) |
Get an application state.
[out] | appState | - State of the application |
[in] | len | - sizeof(SceAppMgrState) |
[in] | version | - Version (?) |
int sceAppMgrReceiveSystemEvent | ( | SceAppMgrSystemEvent * | systemEvent | ) |
Receive system event.
[out] | systemEvent | - Received system event |
int sceAppMgrGetAppParam | ( | char * | param | ) |
Copies app param to an array.
[out] | param | - pointer to a 1024 byte location to store the app param |
int sceAppMgrAcquireBgmPort | ( | void | ) |
Obtains the BGM port, even when it is not in front.
int sceAppMgrReleaseBgmPort | ( | void | ) |
Release acquired BGM port.
int sceAppMgrSetInfobarState | ( | SceAppMgrInfoBarVisibility | visibility, |
SceAppMgrInfoBarColor | color, | ||
SceAppMgrInfoBarTransparency | transparency | ||
) |
Set infobar state.
[in] | visibility | - Infobar visibility |
[in] | color | - Infobar color |
[in] | transparency | - Infobar transparency |
int sceAppMgrLoadExec | ( | const char * | appPath, |
char *const | argv[], | ||
const SceAppMgrExecOptParam * | optParam | ||
) |
Load and start a SELF executable.
[in] | appPath | - Path of the SELF file |
[in] | argv | - Args to pass to SELF module_start |
[in] | optParam | - Optional params |
int sceAppMgrLaunchAppByUri | ( | int | flags, |
const char * | uri | ||
) |
Start an application by URI.
[in] | flags | - Must be 0x20000 |
[in] | uri | - Uri to launch |
int sceAppMgrLaunchAppByName2 | ( | const char * | name, |
const char * | param, | ||
SceAppMgrLaunchAppOptParam * | optParam | ||
) |
Start an application by Title ID.
[in] | name | - Title ID of the application |
[in] | param | - The params passed to the application which can be retrieved with sceAppMgrGetAppParam |
[in] | optParam | - Optional params |
int sceAppMgrLaunchAppByName | ( | int | flags, |
const char * | name, | ||
const char * | param | ||
) |
Start an Application by Title ID.
[in] | flags | - Usually 0x60000 |
[in] | name | - Title ID of the application |
[in] | param | - The params passed to the application which can be retrieved with sceAppMgrGetAppParam |
SceUID sceAppMgrLaunchAppByName2ForShell | ( | const char * | name, |
const char * | param, | ||
SceAppMgrLaunchAppOptParam * | optParam | ||
) |
Start an application by Title ID for Shell.
[in] | name | - Title ID of the application |
[in] | param | - The params passed to the application which can be retrieved with sceAppMgrGetAppParam |
[in] | optParam | - Optional params |
int sceAppMgrGameDataMount | ( | const char * | app_path, |
const char * | patch_path, | ||
const char * | rif_path, | ||
char * | mount_point | ||
) |
Mount game data.
[in] | app_path | - example : "ux0:/app/${TITLEID}" |
[in] | patch_path | - example : "ux0:/patch/${TITLEID}", "invalid:" |
[in] | rif_path | - If NULL the system will automatically search the rif path. example : "ux0:/license/app/${TITLEID}/${HEX}.rif" |
[in] | mount_point | - Mountpoint output |
int sceAppMgrAppDataMount | ( | int | id, |
const char * | mount_point | ||
) |
Mount application data.
[in] | id | - App data ID |
[in] | mount_point | - Mountpoint to use |
int sceAppMgrAppDataMountById | ( | int | id, |
const char * | titleid, | ||
const char * | mount_point | ||
) |
Mount application data by Title ID.
[in] | id | - App data ID |
[in] | titleid | - Application title ID |
[in] | mount_point | - Mountpoint to use |
int sceAppMgrAppParamGetString | ( | int | pid, |
int | param, | ||
char * | string, | ||
SceSize | length | ||
) |
Get application params from SFO descriptor.
[in] | pid | - Process ID |
[in] | param | - Param ID in the SFO descriptor |
[out] | string | - Param data |
[in] | length | - Length of the param data |
int sceAppMgrGetDevInfo | ( | const char * | dev, |
uint64_t * | max_size, | ||
uint64_t * | free_size | ||
) |
Get device info.
[in] | dev | - Device to get info about |
[out] | max_size | - Capacity of the device |
[out] | free_size | - Free space of the device |
int sceAppMgrMmsMount | ( | int | id, |
const char * | mount_point | ||
) |
Mount application data (PSPEmu)
[in] | id | - App data ID |
[in] | mount_point | - Mountpoint to use |
int sceAppMgrPspSaveDataRootMount | ( | const char * | mount_point | ) |
Mount PSPEmu virtual memory stick.
[in] | mount_point | - Mountpoint to use |
int sceAppMgrWorkDirMount | ( | int | id, |
const char * | mount_point | ||
) |
Mount working directory.
[in] | id | - Working directory ID |
[in] | mount_point | - Mountpoint to use |
int sceAppMgrWorkDirMountById | ( | int | id, |
const char * | titleid, | ||
const char * | mount_point | ||
) |
Mount working directory by Title ID.
[in] | id | - Working directory ID |
[in] | titleid | - Application Title ID |
[in] | mount_point | - Mountpoint to use |
int sceAppMgrUmount | ( | const char * | mount_point | ) |
Unmount a mountpoint.
[in] | mount_point | - Mountpoint to unmount |
int sceAppMgrConvertVs0UserDrivePath | ( | char * | path, |
char * | mount_point, | ||
int | unk | ||
) |
Convert vs0 path string to a new one usable by applications.
[in] | path | - Path to convert |
[in] | mount_point | - Mountpoint to use |
[in] | unk | - Unknown |
int sceAppMgrGetRawPath | ( | char * | path, |
char * | resolved_path, | ||
int | resolved_path_size | ||
) |
Get raw path for a given path.
[out] | path | - Path to convert |
[in] | resolved_path | - The input process path |
[in] | resolved_path_size | - The input process path length |
int sceAppMgrGetRawPathOfApp0ByAppIdForShell | ( | int | appId, |
char | resolved_path[292] | ||
) |
Get the real/resolved path of app0: (where it's actually mounted)
[in] | appId | - Use -2 for the current application |
[out] | resolved_path | - Buffer that will hold the resolved path. It should have enough room to hold 292 characters or it will buffer overflow (noname120). |
int sceAppMgrGetBudgetInfo | ( | SceAppMgrBudgetInfo * | info | ) |
Get memory budget info for a running system application.
[out] | info | - Info related to the memory budget of the running application. |
VITASDK_BUILD_ASSERT_EQ | ( | 0x428 | , |
SceAppMgrCoredumpState | |||
) |
int sceAppMgrGetCoredumpStateForShell | ( | SceAppMgrCoredumpState * | state | ) |
Get current coredump state for shell.
[out] | state | - state info output. |
SceInt32 sceAppMgrDrmOpen | ( | const SceAppMgrDrmOpenParam * | param | ) |
SceInt32 sceAppMgrGetAppInfo | ( | const char * | unk, |
SceAppMgrAppState * | state | ||
) |
Get AppInfo via syscall directly.
[in] | unk | - unknown; maybe titleid |
[out] | state | - The app state output buffer pointer |
[in] | syscall_validity | - The syscall validity buffer |