ScummVM API documentation
Wintermute::BasePersistenceManager Class Reference

Public Member Functions

bool saveFile (const Common::String &filename)
 
uint32 getDWORD ()
 
void putDWORD (uint32 val)
 
char * getString ()
 
Common::String getStringObj ()
 
void putString (const char *val)
 
float getFloat ()
 
void putFloat (float val)
 
double getDouble ()
 
void putDouble (double val)
 
void cleanup ()
 
void getSaveStateDesc (int slot, SaveStateDescriptor &desc)
 
bool deleteSaveSlot (int slot)
 
uint32 getMaxUsedSlot ()
 
bool getSaveExists (int slot)
 
bool initLoad (const Common::String &filename)
 
bool initSave (const Common::String &desc)
 
bool getBytes (byte *buffer, uint32 size)
 
bool putBytes (byte *buffer, uint32 size)
 
bool getIsSaving ()
 
TimeDate getSavedTimestamp ()
 
bool transferPtr (const char *name, void *val)
 
bool transferSint32 (const char *name, int32 *val)
 
bool transferUint32 (const char *name, uint32 *val)
 
bool transferFloat (const char *name, float *val)
 
bool transferDouble (const char *name, double *val)
 
bool transferBool (const char *name, bool *val)
 
bool transferByte (const char *name, byte *val)
 
bool transferRect32 (const char *name, Rect32 *val)
 
bool transferPoint32 (const char *name, Point32 *val)
 
bool transferConstChar (const char *name, const char **val)
 
bool transferCharPtr (const char *name, char **val)
 
bool transferString (const char *name, Common::String *val)
 
bool transferVector2 (const char *name, Vector2 *val)
 
bool transferVector3d (const char *name, DXVector3 *val)
 
bool transferVector4d (const char *name, DXVector4 *val)
 
bool transferMatrix4 (const char *name, DXMatrix *val)
 
bool transferAngle (const char *name, float *val)
 
 BasePersistenceManager (const Common::String &savePrefix="", bool deleteSingleton=false)
 
bool checkVersion (byte verMajor, byte verMinor, byte verBuild)
 
Common::String getFilenameForSlot (int slot) const
 

Public Attributes

char * _savedDescription
 
Common::String _savePrefix
 
Common::String _savedName
 
uint32 _offset
 
uint32 _richBufferSize
 
byte * _richBuffer
 
uint32 _thumbnailDataSize
 
byte * _thumbnailData
 
uint32 _scummVMThumbSize
 
byte * _scummVMThumbnailData
 

The documentation for this class was generated from the following file: