Main Save Functions
sysSaveListLoad2
Load save data with list selection dialog.Version number, use
SYS_SAVE_CURRENT_VERSION (0).List display settings (sorting, filtering).
Buffer configuration for save data.
Callback for list operations.
Callback for status operations.
Callback for file operations.
Memory container ID.
User data passed to callbacks.
Returns:
SYS_SAVE_RETURN_DONE(0) - SuccessSYS_SAVE_RETURN_CANCELED(1) - User canceledSYS_SAVE_RETURN_ERROR_*- Various error codes
sysSaveListSave2
Save data with list selection dialog.sysSaveListLoad2. Opens a save dialog allowing the user to select where to save.
sysSaveAutoLoad2
Automatically load from a specific save directory.Version number, use
SYS_SAVE_CURRENT_VERSION (0).Save directory name (max 32 characters).
Error dialog display mode:
SYS_SAVE_ERROR_DIALOG_NONE(0) - No error dialogSYS_SAVE_ERROR_DIALOG_SHOW(1) - Show error dialogSYS_SAVE_ERROR_DIALOG_SHOW_ONCE(2) - Show error dialog once
Buffer configuration.
Status callback function.
File operation callback.
Memory container ID.
User data for callbacks.
Returns status code.
sysSaveAutoSave2
Automatically save to a specific directory.sysSaveAutoLoad2. Saves without showing a dialog.
sysSaveFixedLoad2
Load from a fixed save location.sysSaveFixedSave2
Save to a fixed location.sysSaveListAutoLoad
Load with automatic list handling.sysSaveListAutoSave
Save with automatic list handling.sysSaveDelete2
Delete save data.Memory container ID.
Returns status code.
Data Structures
sysSaveListSettings
List display settings.Sort type:
SYS_SAVE_SORT_TYPE_TIMESTAMP(0) - Sort by timestampSYS_SAVE_SORT_TYPE_TITLE(1) - Sort by title
Sort order:
SYS_SAVE_SORT_ORDER_DESCENDING(0) - Descending orderSYS_SAVE_SORT_ORDER_ASCENDING(1) - Ascending order
Path prefix filter for save directories.
sysSaveBufferSettings
Buffer configuration.Maximum number of save directories.
Maximum number of files per save.
Size of the buffer in bytes.
Pointer to buffer memory.
sysSaveCallbackResult
Callback result structure.Result code:
SYS_SAVE_CALLBACK_RESULT_DONE(1) - Operation completeSYS_SAVE_CALLBACK_RESULT_CONTINUE(0) - Continue processingSYS_SAVE_CALLBACK_RESULT_NO_SPACE_LEFT(-1) - No spaceSYS_SAVE_CALLBACK_RESULT_ERROR(-2) - ErrorSYS_SAVE_CALLBACK_RESULT_CORRUPTED(-3) - Data corruptedSYS_SAVE_CALLBACK_RESULT_NOT_FOUND(-4) - Not foundSYS_SAVE_CALLBACK_RESULT_ERROR_CUSTOM(-5) - Custom error
Progress bar increment value.
Missing space in kilobytes (for no space errors).
Custom error message to display (max 256 chars).
sysSaveSystemFileParam
Save data metadata.Save data title.
Save data subtitle.
Detailed description.
Copy protection flag.
Parental control level.
sysSaveStatusIn
Input parameters for status callback.Free space available in kilobytes.
Whether this is a new save (1) or existing (0).
Binding information flags:
SYS_SAVE_BIND_NO_ERROR(0x00)SYS_SAVE_BIND_ANOTHER_CONSOLE(0x01)SYS_SAVE_BIND_ANOTHER_DISC(0x02)SYS_SAVE_BIND_ANOTHER_APP(0x04)SYS_SAVE_BIND_NO_USER_INFO(0x08)SYS_SAVE_BIND_OTHER_USER(0x10)
Total save data size in kilobytes.
Total number of files in save data.
sysSaveStatusOut
Output parameters for status callback.Metadata to write to save data.
Recreate mode if corrupted:
SYS_SAVE_RECREATE_MODE_OVERWRITE_CORRUPTED(0)SYS_SAVE_RECREATE_MODE_OVERWRITE_NOT_CORRUPTED(1)SYS_SAVE_RECREATE_MODE_DELETE(2)
sysSaveFileOut
File operation parameters.Operation to perform:
SYS_SAVE_FILE_OPERATION_READ(0) - Read fileSYS_SAVE_FILE_OPERATION_WRITE(1) - Write fileSYS_SAVE_FILE_OPERATION_DELETE(2) - Delete file
Type of file:
SYS_SAVE_FILETYPE_PROTECTED_FILE(0) - Protected fileSYS_SAVE_FILETYPE_STANDARD_FILE(1) - Standard fileSYS_SAVE_FILETYPE_CONTENT_ICON0(2) - Icon 0SYS_SAVE_FILETYPE_CONTENT_ICON1(3) - Icon 1SYS_SAVE_FILETYPE_CONTENT_PIC1(4) - Picture 1SYS_SAVE_FILETYPE_CONTENT_SND0(5) - Sound 0
Filename (max 13 characters).
File offset for read/write.
Number of bytes to read/write.
Data buffer.