pspsdk-1.0+beta2
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 {
38 
40 
42 typedef enum
43 {
47  PSP_UTILITY_SAVEDATA_FOCUS_LATEST, /* Most recent date */
51  PSP_UTILITY_SAVEDATA_FOCUS_FIRSTEMPTY, /* First empty slot */
53 
55 
56 
60 {
61  char title[0x80];
62  char savedataTitle[0x80];
63  char detail[0x400];
64  unsigned char parentalLevel;
65  unsigned char unknown[3];
66 
68 
70  void *buf;
72  SceSize size; /* ??? - why are there two sizes? */
73  int unknown;
74 
76 
78 {
80  char *title;
81 
83 
86 {
88 
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;
113 
115 
120 
123 
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 
141 
142 
152 
162 
163 
172 
178 void sceUtilitySavedataUpdate(int unknown);
179 
180 #ifdef __cplusplus
181 }
182 #endif
183 
184 #endif