28 #ifndef GOB_SAVE_SAVEHANDLER_H 29 #define GOB_SAVE_SAVEHANDLER_H 31 #include "common/savefile.h" 32 #include "common/array.h" 34 #include "engines/gob/video.h" 56 virtual int getSlot(int32 offset)
const = 0;
78 virtual uint32 getSlotMax()
const;
81 virtual int32 tallyUpFiles(uint32 slotSize, uint32 indexSize)
const;
84 virtual void buildIndex(byte *buffer,
SavePartInfo &info,
87 virtual bool exists(
int slot)
const;
101 int getSlot(int32 offset)
const override;
107 virtual bool exists()
const;
122 virtual int32 getSize() = 0;
124 virtual bool load(int16 dataVar, int32 size, int32 offset) = 0;
126 virtual bool save(int16 dataVar, int32 size, int32 offset) = 0;
128 virtual bool loadToRaw(byte *ptr, int32 size, int32 offset);
129 virtual bool saveFromRaw(
const byte *ptr, int32 size, int32 offset);
132 virtual bool deleteFile();
146 int32 getSize()
override;
147 bool load(int16 dataVar, int32 size, int32 offset)
override;
148 bool save(int16 dataVar, int32 size, int32 offset)
override;
150 bool loadToRaw(byte *ptr, int32 size, int32 offset)
override;
151 bool saveFromRaw(
const byte *ptr, int32 size, int32 offset)
override;
153 bool create(uint32 width, uint32 height,
bool trueColor);
154 bool createFromSprite(int16 dataVar, int32 size, int32 offset);
160 static bool isDummy(int32 size);
162 static bool isSprite(int32 size);
164 static int getIndex(int32 size);
166 static bool usesPalette(int32 size);
168 SurfacePtr createSprite(int16 dataVar, int32 size, int32 offset);
177 int32 getSize()
override;
178 bool load(int16 dataVar, int32 size, int32 offset)
override;
179 bool save(int16 dataVar, int32 size, int32 offset)
override;
199 int32 getSize()
override;
200 bool load(int16 dataVar, int32 size, int32 offset)
override;
201 bool save(int16 dataVar, int32 size, int32 offset)
override;
202 bool loadToRaw(byte *ptr, int32 size, int32 offset)
override;
203 bool saveFromRaw(
const byte *ptr, int32 size, int32 offset)
override;
205 bool deleteFile()
override;
213 #endif // GOB_SAVE_SAVEHANDLER_H
Definition: savehandler.h:96
Definition: savehandler.h:172
Definition: savefile.h:54
Definition: savehandler.h:194
Definition: savefile.h:130
Definition: savefile.h:200
virtual int getSlotRemainder(int32 offset) const =0
Definition: savehandler.h:141
Definition: savehandler.h:68
Definition: savehandler.h:116
SlotFile(GobEngine *vm, uint32 slotCount, const Common::String &base)
virtual int getSlot(int32 offset) const =0
Definition: savefile.h:162
Definition: savehandler.h:45
Definition: saveconverter.h:43