wut  v1.7.0
Wii U Toolchain
save.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include <nn/acp/result.h>
4 #include <nn/acp/device.h>
5 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef uint64_t ACPTitleId;
19 typedef struct ACPSaveDirInfo ACPSaveDirInfo;
20 
21 struct WUT_PACKED ACPSaveDirInfo {
22  WUT_UNKNOWN_BYTES(0x8);
23  uint32_t persistentId;
24  WUT_UNKNOWN_BYTES(0x14);
25  char path[0x40];
26  WUT_PADDING_BYTES(0x80 - 0x60);
27 };
28 WUT_CHECK_OFFSET(ACPSaveDirInfo, 0x08, persistentId);
29 WUT_CHECK_OFFSET(ACPSaveDirInfo, 0x20, path);
30 WUT_CHECK_SIZE(ACPSaveDirInfo,0x80);
31 
33 ACPCreateSaveDir(uint32_t persistentId,
34  ACPDeviceType deviceType);
35 
38 
41 
44 
55 ACPRemoveSaveDir(uint32_t persistentId,
56  uint64_t titleId,
57  ACPDeviceType deviceType);
58 
69 ACPRemoveSaveDirWithoutFlush(uint32_t persistentId,
70  uint64_t titleId,
71  ACPDeviceType deviceType);
72 
83 ACPRemoveSaveDirWithoutMetaCheck(uint32_t persistentId,
84  uint64_t titleId,
85  ACPDeviceType deviceType);
86 
89 
92 
95 
105 ACPResult
107  uint64_t *titlesOut,
108  uint32_t maxCount,
109  uint32_t *countOut);
110 
122 ACPResult
123 ACPGetTitleSaveDirEx(uint64_t titleId,
124  ACPDeviceType deviceType,
125  uint32_t u1,
126  ACPSaveDirInfo *saveDirInfo,
127  uint32_t maxCount,
128  uint32_t *countOut);
129 
141 ACPResult
143  ACPDeviceType deviceType,
144  uint32_t u1,
145  ACPSaveDirInfo *saveDirInfo,
146  uint32_t maxCount,
147  uint32_t *countOut);
148 
149 #ifdef __cplusplus
150 }
151 #endif
152 
ACPDeviceType
Definition: device.h:15
ACPResult
Definition: result.h:11
uint32_t persistentId
Definition: save.h:22
uint64_t ACPTitleId
Definition: save.h:18
ACPResult ACPCreateSaveDir(uint32_t persistentId, ACPDeviceType deviceType)
ACPResult ACPRepairSaveMetaDir()
ACPResult ACPUnmountSaveDir()
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.
ACPResult ACPGetSaveDataTitleIdList(ACPDeviceType deviceType, uint64_t *titlesOut, uint32_t maxCount, uint32_t *countOut)
Gets all titles id which have save data.
ACPResult ACPIsExternalStorageRequired(BOOL *required)
ACPResult ACPMountExternalStorage()
ACPResult ACPRemoveSaveDir(uint32_t persistentId, uint64_t titleId, ACPDeviceType deviceType)
Deletes the given user's save data directory for the given title.
ACPResult ACPMountSaveDir()
ACPResult ACPRemoveSaveDirWithoutMetaCheck(uint32_t persistentId, uint64_t titleId, ACPDeviceType deviceType)
Deletes the given user's save data directory for the given title.
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.
ACPResult ACPUnmountExternalStorage()
ACPResult ACPRemoveSaveDirWithoutFlush(uint32_t persistentId, uint64_t titleId, ACPDeviceType deviceType)
Deletes the given user's save data directory for the given title.
int32_t BOOL
Definition: wut_types.h:7