wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Functions
Save

Save data services. More...

Collaboration diagram for Save:

Data Structures

struct  ACPSaveDirInfo
 

Typedefs

typedef uint64_t ACPTitleId
 
typedef struct ACPSaveDirInfo ACPSaveDirInfo
 

Functions

ACPResult ACPCreateSaveDir (uint32_t persistentId, ACPDeviceType deviceType)
 
ACPResult ACPIsExternalStorageRequired (BOOL *required)
 
ACPResult ACPMountExternalStorage ()
 
ACPResult ACPMountSaveDir ()
 
ACPResult ACPRemoveSaveDir (uint32_t persistentId, uint64_t titleId, ACPDeviceType deviceType)
 Deletes the given user's save data directory for the given title. More...
 
ACPResult ACPRemoveSaveDirWithoutFlush (uint32_t persistentId, uint64_t titleId, ACPDeviceType deviceType)
 Deletes the given user's save data directory for the given title. More...
 
ACPResult ACPRemoveSaveDirWithoutMetaCheck (uint32_t persistentId, uint64_t titleId, ACPDeviceType deviceType)
 Deletes the given user's save data directory for the given title. More...
 
ACPResult ACPRepairSaveMetaDir ()
 
ACPResult ACPUnmountExternalStorage ()
 
ACPResult ACPUnmountSaveDir ()
 
ACPResult ACPGetSaveDataTitleIdList (ACPDeviceType deviceType, uint64_t *titlesOut, uint32_t maxCount, uint32_t *countOut)
 Gets all titles id which have save data. More...
 
ACPResult ACPGetTitleSaveDirEx (uint64_t titleId, ACPDeviceType deviceType, uint32_t u1, ACPSaveDirInfo *saveDirInfo, uint32_t maxCount, uint32_t *countOut)
 Gets a list of all saves dir for a given title id. More...
 
ACPResult ACPGetTitleSaveDirExWithoutMetaCheck (uint64_t titleId, ACPDeviceType deviceType, uint32_t u1, ACPSaveDirInfo *saveDirInfo, uint32_t maxCount, uint32_t *countOut)
 Gets a list of all saves dir for a given title id. More...
 

Detailed Description

Save data services.


Data Structure Documentation

◆ ACPSaveDirInfo

struct ACPSaveDirInfo

Definition at line 21 of file save.h.

Data Fields
uint32_t persistentId
char path[0x40]

Typedef Documentation

◆ ACPTitleId

typedef uint64_t ACPTitleId

Definition at line 18 of file save.h.

◆ ACPSaveDirInfo

Definition at line 18 of file save.h.

Function Documentation

◆ ACPCreateSaveDir()

ACPResult ACPCreateSaveDir ( uint32_t  persistentId,
ACPDeviceType  deviceType 
)

◆ ACPIsExternalStorageRequired()

ACPResult ACPIsExternalStorageRequired ( BOOL required)

◆ ACPMountExternalStorage()

ACPResult ACPMountExternalStorage ( )

◆ ACPMountSaveDir()

ACPResult ACPMountSaveDir ( )

◆ ACPRemoveSaveDir()

ACPResult ACPRemoveSaveDir ( uint32_t  persistentId,
uint64_t  titleId,
ACPDeviceType  deviceType 
)

Deletes the given user's save data directory for the given title.

Parameters
persistentIdThe persistent ID of the user. Pass 0 to delete the 'common' directory.
Returns
ACP_RESULT_SUCCESS on success.

◆ ACPRemoveSaveDirWithoutFlush()

ACPResult ACPRemoveSaveDirWithoutFlush ( uint32_t  persistentId,
uint64_t  titleId,
ACPDeviceType  deviceType 
)

Deletes the given user's save data directory for the given title.

Parameters
persistentIdThe persistent ID of the user. Pass 0 to delete the 'common' directory.
Returns
ACP_RESULT_SUCCESS on success.

◆ ACPRemoveSaveDirWithoutMetaCheck()

ACPResult ACPRemoveSaveDirWithoutMetaCheck ( uint32_t  persistentId,
uint64_t  titleId,
ACPDeviceType  deviceType 
)

Deletes the given user's save data directory for the given title.

Parameters
persistentIdThe persistent ID of the user. Pass 0 to delete the 'common' directory.
Returns
ACP_RESULT_SUCCESS on success.

◆ ACPRepairSaveMetaDir()

ACPResult ACPRepairSaveMetaDir ( )

◆ ACPUnmountExternalStorage()

ACPResult ACPUnmountExternalStorage ( )

◆ ACPUnmountSaveDir()

ACPResult ACPUnmountSaveDir ( )

◆ ACPGetSaveDataTitleIdList()

ACPResult ACPGetSaveDataTitleIdList ( ACPDeviceType  deviceType,
uint64_t *  titlesOut,
uint32_t  maxCount,
uint32_t *  countOut 
)

Gets all titles id which have save data.

Parameters
deviceType
titlesOutneeds to be aligned to 0x40
maxCountneeds to be a multiple of 8
countOut
Returns
ACP_RESULT_SUCCESS on success.

◆ ACPGetTitleSaveDirEx()

ACPResult ACPGetTitleSaveDirEx ( uint64_t  titleId,
ACPDeviceType  deviceType,
uint32_t  u1,
ACPSaveDirInfo saveDirInfo,
uint32_t  maxCount,
uint32_t *  countOut 
)

Gets a list of all saves dir for a given title id.

Parameters
titleId
deviceType
u1seems to be always 0
saveDirInfoneeds to be aligned to 0x40
maxCount
countOut
Returns
ACP_RESULT_SUCCESS on success.

◆ ACPGetTitleSaveDirExWithoutMetaCheck()

ACPResult ACPGetTitleSaveDirExWithoutMetaCheck ( uint64_t  titleId,
ACPDeviceType  deviceType,
uint32_t  u1,
ACPSaveDirInfo saveDirInfo,
uint32_t  maxCount,
uint32_t *  countOut 
)

Gets a list of all saves dir for a given title id.

Parameters
titleId
deviceType
u1seems to be always 0
saveDirInfoneeds to be aligned to 0x40
maxCount
countOut
Returns
ACP_RESULT_SUCCESS on success.