![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Functions | |
| int | sceSblLicMgrActivateDevkit (const char *afv_path) |
| Activate a development or testing kit from an AFV file. | |
| int | sceSblLicMgrActivateFromFs (void) |
Activate from the first .afv file in ux0:/data/activate/. | |
| int | sceSblLicMgrClearActivationData (void) |
Clear activation data in NVS and in tm0:activate/. | |
| int | sceSblLicMgrGetActivationKey (SceSblActivationKey *key) |
| Get the console activation key. | |
| int | sceSblLicMgrGetExpireDate (int *expire_date, SceBool read_from_nvs) |
| Get the cached expiration time or the remaining activation time. | |
| int | sceSblLicMgrGetIssueNo (int *issue_number, SceBool read_from_nvs) |
| Get the activation issue number. | |
| int | sceSblLicMgrGetLicenseStatus (void) |
| Get the cached activation state. | |
| int | sceSblLicMgrGetUsageTimeLimit (SceUInt32 *time_limit) |
| Get the kit's remaining activation time in seconds. | |
Exports for User.
Include the header file in your project:
Link the library to the executable:
| int sceSblLicMgrActivateDevkit | ( | const char * | afv_path | ) |
Activate a development or testing kit from an AFV file.
This operation is restricted to system programs. FW 3.60 copies at most 255 path bytes and accepts paths under host0:, ux0:/data/activate/, and ur0:/temp/activation. A successful installation does not recalculate the cached license state.
| [in] | afv_path | - NUL-terminated activation-file path. |
| int sceSblLicMgrActivateFromFs | ( | void | ) |
Activate from the first .afv file in ux0:/data/activate/.
This operation is restricted to system programs. A successful installation does not recalculate the cached license state.
| int sceSblLicMgrClearActivationData | ( | void | ) |
Clear activation data in NVS and in tm0:activate/.
FW 3.60 overwrites the stored data with 0xFF bytes rather than removing the two activation files. It does not recalculate the cached license state. This operation is restricted to system programs.
| int sceSblLicMgrGetActivationKey | ( | SceSblActivationKey * | key | ) |
Get the console activation key.
This operation is restricted to system programs.
| [out] | key | - Receives the OpenPSID and its four-lane byte-sum hash. |
| int sceSblLicMgrGetExpireDate | ( | int * | expire_date, |
| SceBool | read_from_nvs | ||
| ) |
Get the cached expiration time or the remaining activation time.
This operation is restricted to system programs. When read_from_nvs is zero, FW 3.60 writes the cached absolute expiration time to expire_date. When it is nonzero, FW 3.60 reads and verifies NVS and writes the number of seconds remaining to expire_date.
| [out] | expire_date | - Receives the expiration result described above. |
| [in] | read_from_nvs | - Nonzero to refresh from NVS; zero uses the cache. |
| int sceSblLicMgrGetIssueNo | ( | int * | issue_number, |
| SceBool | read_from_nvs | ||
| ) |
Get the activation issue number.
This operation is restricted to system programs.
| [out] | issue_number | - Receives the issue number. |
| [in] | read_from_nvs | - Nonzero to refresh from NVS; zero uses the cache. |
| int sceSblLicMgrGetLicenseStatus | ( | void | ) |
Get the cached activation state.
| int sceSblLicMgrGetUsageTimeLimit | ( | SceUInt32 * | time_limit | ) |
Get the kit's remaining activation time in seconds.
On success, a zero value in time_limit means the kit has expired. This operation is restricted to system programs. When any QAF flag is set, FW 3.60 writes the bitwise complement of the current secure Unix time to time_limit as an effectively unrestricted value instead of the normal expiration interval.
| [out] | time_limit | - Receives the remaining number of seconds. |