28 #ifndef WINTERMUTE_BASE_PERSISTENCE_MANAGER_H 29 #define WINTERMUTE_BASE_PERSISTENCE_MANAGER_H 32 #include "engines/wintermute/dctypes.h" 33 #include "engines/wintermute/math/rect32.h" 34 #include "engines/wintermute/base/gfx/xmath.h" 35 #include "engines/savestate.h" 36 #include "common/stream.h" 37 #include "common/str.h" 38 #include "common/system.h" 39 #include "common/rect.h" 45 template<
int rows,
int cols>
class Matrix;
46 typedef Matrix<4, 4> Matrix4;
47 typedef Matrix<3, 1> Vector3d;
58 char *_savedDescription;
63 void putDWORD(uint32 val);
66 void putString(
const char *val);
68 void putFloat(
float val);
70 void putDouble(
double val);
73 bool deleteSaveSlot(
int slot);
74 uint32 getMaxUsedSlot();
75 bool getSaveExists(
int slot);
78 bool getBytes(byte *buffer, uint32 size);
79 bool putBytes(byte *buffer, uint32 size);
82 bool getIsSaving() {
return _saving; }
83 TimeDate getSavedTimestamp() {
return _savedTimestamp; }
85 uint32 _richBufferSize;
88 bool transferPtr(
const char *name,
void *val);
89 bool transferSint32(
const char *name, int32 *val);
90 bool transferUint32(
const char *name, uint32 *val);
91 bool transferFloat(
const char *name,
float *val);
92 bool transferDouble(
const char *name,
double *val);
93 bool transferBool(
const char *name,
bool *val);
94 bool transferByte(
const char *name, byte *val);
95 bool transferRect32(
const char *name,
Rect32 *val);
96 bool transferPoint32(
const char *name,
Point32 *val);
97 bool transferConstChar(
const char *name,
const char **val);
98 bool transferCharPtr(
const char *name,
char **val);
100 bool transferVector2(
const char *name,
Vector2 *val);
101 bool transferVector3d(
const char *name,
DXVector3 *val);
102 bool transferVector4d(
const char *name,
DXVector4 *val);
103 bool transferMatrix4(
const char *name,
DXMatrix *val);
104 bool transferAngle(
const char *name,
float *val);
107 bool checkVersion(byte verMajor, byte verMinor, byte verBuild);
109 uint32 _thumbnailDataSize;
110 byte *_thumbnailData;
111 uint32 _scummVMThumbSize;
112 byte *_scummVMThumbnailData;
115 bool _deleteSingleton;
118 bool putTimeDate(
const TimeDate &t);
122 uint32 _savedPlayTime;
Definition: base_game.h:76
Definition: base_persistence_manager.h:56
Definition: savestate.h:56
Definition: achievements_tables.h:27