pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
psputility_savedata.h
Go to the documentation of this file.
1
/*
2
* PSP Software Development Kit - http://www.pspdev.org
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
* $Id: psputility_savedata.h 2471 2009-08-21 18:26:33Z jim $
15
*/
16
17
#ifndef __PSPUTILITY_SAVEDATA_H__
18
#define __PSPUTILITY_SAVEDATA_H__
19
20
#include <
psptypes.h
>
21
#include <
pspkerneltypes.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
28
typedef
enum
29
{
30
PSP_UTILITY_SAVEDATA_AUTOLOAD
= 0,
31
PSP_UTILITY_SAVEDATA_AUTOSAVE
,
32
PSP_UTILITY_SAVEDATA_LOAD
,
33
PSP_UTILITY_SAVEDATA_SAVE
,
34
PSP_UTILITY_SAVEDATA_LISTLOAD
,
35
PSP_UTILITY_SAVEDATA_LISTSAVE
,
36
PSP_UTILITY_SAVEDATA_LISTDELETE
,
37
PSP_UTILITY_SAVEDATADELETE
,
38
39
}
PspUtilitySavedataMode
;
40
42
typedef
enum
43
{
44
PSP_UTILITY_SAVEDATA_FOCUS_UNKNOWN
= 0,
45
PSP_UTILITY_SAVEDATA_FOCUS_FIRSTLIST
,
/* First in list */
46
PSP_UTILITY_SAVEDATA_FOCUS_LASTLIST
,
/* Last in list */
47
PSP_UTILITY_SAVEDATA_FOCUS_LATEST
,
/* Most recent date */
48
PSP_UTILITY_SAVEDATA_FOCUS_OLDEST
,
/* Oldest date */
49
PSP_UTILITY_SAVEDATA_FOCUS_UNKNOWN2
,
50
PSP_UTILITY_SAVEDATA_FOCUS_UNKNOWN3
,
51
PSP_UTILITY_SAVEDATA_FOCUS_FIRSTEMPTY
,
/* First empty slot */
52
PSP_UTILITY_SAVEDATA_FOCUS_LASTEMPTY
,
/*Last empty slot */
53
54
}
PspUtilitySavedataFocus
;
55
56
59
typedef
struct
PspUtilitySavedataSFOParam
60
{
61
char
title
[0x80];
62
char
savedataTitle
[0x80];
63
char
detail
[0x400];
64
unsigned
char
parentalLevel
;
65
unsigned
char
unknown
[3];
66
67
}
PspUtilitySavedataSFOParam
;
68
69
typedef
struct
PspUtilitySavedataFileData
{
70
void
*
buf
;
71
SceSize
bufSize
;
72
SceSize
size
;
/* ??? - why are there two sizes? */
73
int
unknown
;
74
75
}
PspUtilitySavedataFileData
;
76
77
typedef
struct
PspUtilitySavedataListSaveNewData
78
{
79
PspUtilitySavedataFileData
icon0
;
80
char
*
title
;
81
82
}
PspUtilitySavedataListSaveNewData
;
83
85
typedef
struct
SceUtilitySavedataParam
86
{
87
pspUtilityDialogCommon
base
;
88
89
PspUtilitySavedataMode
mode
;
90
91
int
unknown1
;
92
93
int
overwrite
;
94
96
char
gameName
[13];
97
char
reserved
[3];
99
char
saveName
[20];
100
102
char (*
saveNameList
)[20];
103
105
char
fileName
[13];
106
char
reserved1
[3];
107
109
void
*
dataBuf
;
111
SceSize
dataBufSize
;
112
SceSize
dataSize
;
113
114
PspUtilitySavedataSFOParam
sfoParam
;
115
116
PspUtilitySavedataFileData
icon0FileData
;
117
PspUtilitySavedataFileData
icon1FileData
;
118
PspUtilitySavedataFileData
pic1FileData
;
119
PspUtilitySavedataFileData
snd0FileData
;
120
122
PspUtilitySavedataListSaveNewData
*
newData
;
123
125
PspUtilitySavedataFocus
focus
;
126
128
int
unknown2
[4];
129
130
#if _PSP_FW_VERSION >= 200
131
133
char
key[16];
134
136
char
unknown3[20];
137
138
#endif
139
140
}
SceUtilitySavedataParam
;
141
142
151
int
sceUtilitySavedataInitStart
(
SceUtilitySavedataParam
* params);
152
161
int
sceUtilitySavedataGetStatus
(
void
);
162
163
171
int
sceUtilitySavedataShutdownStart
(
void
);
172
178
void
sceUtilitySavedataUpdate
(
int
unknown);
179
180
#ifdef __cplusplus
181
}
182
#endif
183
184
#endif
src
utility
psputility_savedata.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2