psputility_savedata.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  *  psputility_savedata.h - Definitions and Functions for savedata part of
00007  *                     pspUtility library
00008  *
00009  * Copyright (c) 2005    Shine
00010  *                       weltall <weltall@consoleworld.org>
00011  *                       Marcus R. Brown <mrbrown@ocgnet.org>
00012  *
00013  * $Id: psputility_savedata.h 1418 2005-11-10 07:33:18Z mrbrown $
00014  */
00015 
00016 #ifndef __PSPUTILITY_SAVEDATA_H__
00017 #define __PSPUTILITY_SAVEDATA_H__
00018 
00019 #include <psptypes.h>
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00027 typedef struct PspUtilitySavedataSFOParam
00028 {
00029         char title[0x80];
00030         char savedataTitle[0x80];
00031         char detail[0x400];
00032         unsigned char parentalLevel;
00033         unsigned char unknown[3];
00034 } PspUtilitySavedataSFOParam;
00035 
00036 typedef struct PspUtilitySavedataFileData {
00037         void *buf;
00038         SceSize bufSize;
00039         SceSize size;   /* ??? - why are there two sizes? */
00040         int unknown;
00041 } PspUtilitySavedataFileData;
00042 
00045 typedef struct SceUtilitySavedataParam
00046 {
00048         SceSize size;
00049 
00050         int language;
00051 
00052         int buttonSwap;
00053 
00054         int unknown[4];
00055         int result;
00056         int unknown2[4];
00057 
00059         int mode;
00060         int unknown12;
00061 
00063         int unknown13;
00064 
00066         char gameName[16];
00068         char saveName[24];
00070         char fileName[16];
00071 
00073         void *dataBuf;
00075         SceSize dataBufSize;
00076         SceSize dataSize;
00077 
00078         PspUtilitySavedataSFOParam sfoParam;
00079 
00080         PspUtilitySavedataFileData icon0FileData;
00081         PspUtilitySavedataFileData icon1FileData;
00082         PspUtilitySavedataFileData pic1FileData;
00083         PspUtilitySavedataFileData snd0FileData;
00084 
00085         unsigned char unknown17[4];
00086 } SceUtilitySavedataParam;
00087 
00088 
00097 int sceUtilitySavedataInitStart(SceUtilitySavedataParam * params);
00098 
00107 int sceUtilitySavedataGetStatus(void);
00108 
00109 
00117 int sceUtilitySavedataShutdownStart(void);
00118 
00124 void sceUtilitySavedataUpdate(int unknown);
00125 
00126 #ifdef __cplusplus
00127 }
00128 #endif
00129 
00130 #endif

Generated on Tue Jul 24 15:21:23 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2