PSPSDK 2024-12-16
Loading...
Searching...
No Matches
psputility_savedata.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * psputility_savedata.h - Definitions and Functions for savedata part of
7 * pspUtility library
8 *
9 * Copyright (c) 2005 Shine
10 * weltall <weltall@consoleworld.org>
11 * Marcus R. Brown <mrbrown@ocgnet.org>
12 * InsertWittyName <tias_dp@hotmail.com>
13 *
14 */
15
16#ifndef __PSPUTILITY_SAVEDATA_H__
17#define __PSPUTILITY_SAVEDATA_H__
18
19#include <psptypes.h>
20#include <pspkerneltypes.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
53
55typedef enum
56{
60 PSP_UTILITY_SAVEDATA_FOCUS_LATEST, /* Most recent date */
62 PSP_UTILITY_SAVEDATA_FOCUS_FIRSTDATA, /* first non-empty (first if none) */
63 PSP_UTILITY_SAVEDATA_FOCUS_LASTDATA, /* last non-empty (first if none) */
66
68
69
73{
74 char title[0x80];
75 char savedataTitle[0x80];
76 char detail[0x400];
77 unsigned char parentalLevel;
78 unsigned char unknown[3];
79
81
83 void *buf;
85 SceSize size; /* ??? - why are there two sizes? */
87
89
95
111
121
129
141
155
164
174
183
190
261
262
272
282
283
292
298void sceUtilitySavedataUpdate(int unknown);
299
300#ifdef __cplusplus
301}
302#endif
303
304#endif
unsigned int SceSize
Definition pspkerneltypes.h:27
float x
Definition psptypes.h:0
void sceUtilitySavedataUpdate(int unknown)
Refresh status of the savedata function.
PspUtilitySavedataFocus
Initial focus position for list selection types.
Definition psputility_savedata.h:56
@ PSP_UTILITY_SAVEDATA_FOCUS_FIRSTLIST
Definition psputility_savedata.h:58
@ PSP_UTILITY_SAVEDATA_FOCUS_LATEST
Definition psputility_savedata.h:60
@ PSP_UTILITY_SAVEDATA_FOCUS_LASTDATA
Definition psputility_savedata.h:63
@ PSP_UTILITY_SAVEDATA_FOCUS_LASTLIST
Definition psputility_savedata.h:59
@ PSP_UTILITY_SAVEDATA_FOCUS_FIRSTDATA
Definition psputility_savedata.h:62
@ PSP_UTILITY_SAVEDATA_FOCUS_OLDEST
Definition psputility_savedata.h:61
@ PSP_UTILITY_SAVEDATA_FOCUS_FIRSTEMPTY
Definition psputility_savedata.h:64
@ PSP_UTILITY_SAVEDATA_FOCUS_UNKNOWN
Definition psputility_savedata.h:57
@ PSP_UTILITY_SAVEDATA_FOCUS_LASTEMPTY
Definition psputility_savedata.h:65
int sceUtilitySavedataGetStatus(void)
Check the current status of the saving/loading/shutdown process Continue calling this to check curren...
int sceUtilitySavedataInitStart(SceUtilitySavedataParam *params)
Saves or Load savedata to/from the passed structure After having called this continue calling sceUtil...
PspUtilitySavedataMode
Save data utility modes.
Definition psputility_savedata.h:28
@ SCE_UTILITY_SAVEDATA_SIZES
Definition psputility_savedata.h:37
@ PSP_UTILITY_SAVEDATA_LISTSAVE
Definition psputility_savedata.h:34
@ SCE_UTILITY_SAVEDATA_FILES
Definition psputility_savedata.h:41
@ PSP_UTILITY_SAVEDATA_LISTALLDELETE
Definition psputility_savedata.h:36
@ SCE_UTILITY_SAVEDATA_DELETEDATA
Definition psputility_savedata.h:50
@ SCE_UTILITY_SAVEDATA_GETSIZE
Definition psputility_savedata.h:51
@ SCE_UTILITY_SAVEDATA_MAKEDATASECURE
Definition psputility_savedata.h:42
@ SCE_UTILITY_SAVEDATA_DELETE
Definition psputility_savedata.h:39
@ SCE_UTILITY_SAVEDATA_MAKEDATA
Definition psputility_savedata.h:43
@ PSP_UTILITY_SAVEDATA_LISTLOAD
Definition psputility_savedata.h:33
@ PSP_UTILITY_SAVEDATA_AUTOSAVE
Definition psputility_savedata.h:30
@ PSP_UTILITY_SAVEDATA_SAVE
Definition psputility_savedata.h:32
@ PSP_UTILITY_SAVEDATA_LISTDELETE
Definition psputility_savedata.h:35
@ SCE_UTILITY_SAVEDATA_READDATASECURE
Definition psputility_savedata.h:44
@ SCE_UTILITY_SAVEDATA_READDATA
Definition psputility_savedata.h:45
@ PSP_UTILITY_SAVEDATA_AUTOLOAD
Definition psputility_savedata.h:29
@ PSP_UTILITY_SAVEDATA_LOAD
Definition psputility_savedata.h:31
@ SCE_UTILITY_SAVEDATA_ERASESECURE
Definition psputility_savedata.h:48
@ SCE_UTILITY_SAVEDATA_WRITEDATA
Definition psputility_savedata.h:47
@ SCE_UTILITY_SAVEDATA_WRITEDATASECURE
Definition psputility_savedata.h:46
@ SCE_UTILITY_SAVEDATA_ERASE
Definition psputility_savedata.h:49
@ SCE_UTILITY_SAVEDATA_AUTODELETE
Definition psputility_savedata.h:38
@ SCE_UTILITY_SAVEDATA_LIST
Definition psputility_savedata.h:40
int sceUtilitySavedataShutdownStart(void)
Shutdown the savedata utility.
Definition psputility_savedata.h:82
int unknown
Definition psputility_savedata.h:86
SceSize size
Definition psputility_savedata.h:85
SceSize bufSize
Definition psputility_savedata.h:84
void * buf
Definition psputility_savedata.h:83
Definition psputility_savedata.h:185
char * title
Definition psputility_savedata.h:187
PspUtilitySavedataFileData icon0
Definition psputility_savedata.h:186
title, savedataTitle, detail: parts of the unencrypted SFO data, it contains what the VSH and standar...
Definition psputility_savedata.h:73
char savedataTitle[0x80]
Definition psputility_savedata.h:75
char title[0x80]
Definition psputility_savedata.h:74
char detail[0x400]
Definition psputility_savedata.h:76
unsigned char parentalLevel
Definition psputility_savedata.h:77
unsigned char unknown[3]
Definition psputility_savedata.h:78
Definition psputility_savedata.h:90
uint64_t size
Definition psputility_savedata.h:91
char name[16]
Definition psputility_savedata.h:92
Definition psputility_savedata.h:96
int freeSectors
Definition psputility_savedata.h:102
int overwriteKB
Definition psputility_savedata.h:107
char neededString[8]
Definition psputility_savedata.h:106
PspUtilitySavedataSizeEntry * secureEntries
Definition psputility_savedata.h:99
PspUtilitySavedataSizeEntry * normalEntries
Definition psputility_savedata.h:100
int sectorSize
Definition psputility_savedata.h:101
int numNormalEntries
Definition psputility_savedata.h:98
char freeString[8]
Definition psputility_savedata.h:104
int neededKB
Definition psputility_savedata.h:105
int freeKB
Definition psputility_savedata.h:103
int numSecureEntries
Definition psputility_savedata.h:97
char overwriteString[8]
Definition psputility_savedata.h:108
Definition psptypes.h:419
Definition psputility_savedata.h:131
char name[16]
Definition psputility_savedata.h:138
uint32_t st_unk0
Definition psputility_savedata.h:133
ScePspDateTime sce_st_ctime
Definition psputility_savedata.h:135
int st_mode
Definition psputility_savedata.h:132
ScePspDateTime sce_st_atime
Definition psputility_savedata.h:136
ScePspDateTime sce_st_mtime
Definition psputility_savedata.h:137
uint64_t st_size
Definition psputility_savedata.h:134
Definition psputility_savedata.h:143
uint32_t resultNumNormalEntries
Definition psputility_savedata.h:148
uint32_t maxSystemEntries
Definition psputility_savedata.h:146
uint32_t maxNormalEntries
Definition psputility_savedata.h:145
SceUtilitySavedataFileListEntry * secureEntries
Definition psputility_savedata.h:150
SceUtilitySavedataFileListEntry * normalEntries
Definition psputility_savedata.h:151
uint32_t maxSecureEntries
Definition psputility_savedata.h:144
uint32_t resultNumSystemEntries
Definition psputility_savedata.h:149
uint32_t resultNumSecureEntries
Definition psputility_savedata.h:147
SceUtilitySavedataFileListEntry * systemEntries
Definition psputility_savedata.h:152
Definition psputility_savedata.h:113
ScePspDateTime sce_st_ctime
Definition psputility_savedata.h:115
char name[20]
Definition psputility_savedata.h:118
ScePspDateTime sce_st_mtime
Definition psputility_savedata.h:117
int st_mode
Definition psputility_savedata.h:114
ScePspDateTime sce_st_atime
Definition psputility_savedata.h:116
Definition psputility_savedata.h:123
int maxCount
Definition psputility_savedata.h:124
SceUtilitySavedataIdListEntry * entries
Definition psputility_savedata.h:126
int resultCount
Definition psputility_savedata.h:125
Definition psputility_savedata.h:176
char saveName[20]
Definition psputility_savedata.h:179
char pad[3]
Definition psputility_savedata.h:178
SceUtilitySavedataUsedDataInfo info
Definition psputility_savedata.h:180
char gameName[13]
Definition psputility_savedata.h:177
Definition psputility_savedata.h:157
int freeSpaceKB
Definition psputility_savedata.h:160
int clusterSize
Definition psputility_savedata.h:158
char freeSpaceStr[8]
Definition psputility_savedata.h:161
int freeClusters
Definition psputility_savedata.h:159
Structure to hold the parameters for the sceUtilitySavedataInitStart function.
Definition psputility_savedata.h:193
int bind
Definition psputility_savedata.h:198
char reserved1[3]
Definition psputility_savedata.h:213
char saveName[20]
saveName: name of the particular save, normally a number
Definition psputility_savedata.h:206
void * dataBuf
pointer to a buffer that will contain data file unencrypted data
Definition psputility_savedata.h:216
PspUtilitySavedataFileData pic1FileData
Definition psputility_savedata.h:225
PspUtilitySavedataListSaveNewData * newData
Pointer to an PspUtilitySavedataListSaveNewData structure.
Definition psputility_savedata.h:229
char fileName[13]
fileName: name of the data file of the game for example DATA.BIN
Definition psputility_savedata.h:212
PspUtilitySavedataSFOParam sfoParam
Definition psputility_savedata.h:221
int abortStatus
Definition psputility_savedata.h:234
PspUtilitySavedataFileData icon1FileData
Definition psputility_savedata.h:224
char reserved[3]
Definition psputility_savedata.h:204
char gameName[13]
gameName: name used from the game for saves, equal for all saves
Definition psputility_savedata.h:203
PspUtilitySavedataFileData snd0FileData
Definition psputility_savedata.h:226
SceSize dataBufSize
size of allocated space to dataBuf
Definition psputility_savedata.h:218
PspUtilitySavedataFocus focus
Initial focus for lists.
Definition psputility_savedata.h:232
char(* saveNameList)[20]
saveNameList: used by multiple modes
Definition psputility_savedata.h:209
PspUtilitySavedataMode mode
Definition psputility_savedata.h:196
SceSize dataSize
Definition psputility_savedata.h:219
int overwrite
Definition psputility_savedata.h:200
SceUtilitySavedataUsedDataInfo * utilityData
Definition psputility_savedata.h:239
pspUtilityDialogCommon base
Definition psputility_savedata.h:194
SceUtilitySavedataMsFreeInfo * msFree
Definition psputility_savedata.h:237
SceUtilitySavedataMsDataInfo * msData
Definition psputility_savedata.h:238
PspUtilitySavedataFileData icon0FileData
Definition psputility_savedata.h:223
Definition psputility_savedata.h:166
int usedClusters
Definition psputility_savedata.h:167
char usedSpaceStr[8]
Definition psputility_savedata.h:169
int usedSpace32KB
Definition psputility_savedata.h:170
char usedSpace32Str[8]
Definition psputility_savedata.h:171
int usedSpaceKB
Definition psputility_savedata.h:168
Definition psputility.h:15