| 1.75SaveData .648 |
| 1.75.1 SaveData.Create .648 |
| 1.75.2 SaveData.GetState .648 |
| 1.75.3 SaveData.StartLoading .649 |
| 1.75.4 SaveData.StartSaving .650 |
|
|
| SaveData |
| SaveData.Create |
| Brief |
| Creates a new save data request object. |
| Definition |
| ! SaveData.Create() |
| Arguments |
| None. |
| Return Values |
| A new instance of a save data request object. |
| Description |
| Creates a new save data request object. |
| Examples |
| ! saveDataRequest = SaveData.Create() |
| See Also |
| SaveData.GetState |
| Brief |
| Returns the current status of the request. |
| Definition |
| SaveData.GetState( SaveData request ) |
| Arguments |
| request - The request to check the state for |
| Return Values |
| One of the following states: |
| 0 - Idle. The request has not started or has completed without any problems |
| 1 - The request is in progress |
| 2 - The request is in progress (but is in a new internal state, scripts should treat this state no differently from 1) |
| -1 - The request has failed |
| -2 - The was no data to load (not technically an error as this will happen when the script is run for the first time) |
| Description |
| Returns the current status of the request. Scripts can monitor the status to see when a request completes and if it was successful or not. |
| Examples |
| local state = SaveData.GetState( saveDataRequest ) |
| See Also |
| SaveData.StartLoading |
| Brief |
| Submits a save data load request. |
| Definition |
| number SaveData.StartLoading( SaveData request, string datald, number type, MemoryContainer container |
| ) |
| Arguments |
| request - The request to submitsaveld - The data identifier. Must match the id used for saving.type - Reserved, must be Ocontainer - The |
| container to load the data into |
| Return Values |
| 0 on success or one of the following errors: |
| -1 - Invalid params. |
| -2 - This request object is already busy. |
| -3 - This is a duplicate of another request in progress (only affects save request). |
| -4 - The container is too large to save. Save sizes are limited to 4kb. |
| -5 - Loading and saving has been disable due to an earlier problem. |
| Description |
| Submits a save data load request. Multiple load requests for the same data can be submitted providing that there are no in progress save |
| requests. Please contact your Playstation(R)Home Regional Account Manager to request a save data key. Note: save data keys are currently |
| limited and use of the save data API will initially be on a restricted basis. |
| Examples |
| local result = SaveData.StartLoading( saveDataRequest, "XXXXXX", 0, container ) |
| See Also |
| SaveData.StartSaving |
| Brief |
| Submits a save data save request. |
| Definition |
| number SaveData.Startsaving( SaveData request, string datald, number type, MemoryContainer container, |
| number size = 0 ) |
| Arguments |
| request - The request to submitsaveld - The data identifier. Must match the id used for loadingtype - Reserved, must be Ocontainer - The |
| container to save the data fromsize - The number of bytes to be saved. If not specified, the UsedSize of the memory container will be used if set. |
| Otherwise, the total memory container size will be used. |
| Return Values |
| 0 on success or one of the following errors: |
| -1 - Invalid params. |
| -2 - This request object is already busy. |
| -3 - This is a duplicate of another request in progress (only affects save request). |
| -4 - The container is too large to save. Save sizes are limited to 4kb. |
| -5 - Loading and saving has been disable due to an earlier problem. |
| Description |
| Submits a save data save request. Only a single save request for a single datald can be in progress at a time. If there are any other loads or |
| saves in progress, the script will need to wait for those to complete first. Please contact your Playstation(R)Home Regional Account Manager to |
| request a save data key. Note: save data keys are currently limited and use of the save data API will initially be on a restricted basis. |
| Examples |
| local result = SaveData.Startsaving( saveDataRequest, "XXXXXX", 0, container ) |
| See Also |
|
|