#include <savehandler.h>
Public Member Functions | |
SlotFileIndexed (GobEngine *vm, uint32 slotCount, const Common::String &base, const Common::String &extStub) | |
Common::String | build (int slot) const |
virtual uint32 | getSlotMax () const |
virtual int32 | tallyUpFiles (uint32 slotSize, uint32 indexSize) const |
virtual void | buildIndex (byte *buffer, SavePartInfo &info, SaveConverter *converter=0, bool setLongest=false) const |
virtual bool | exists (int slot) const |
virtual Common::InSaveFile * | openRead (int slot) const |
virtual Common::OutSaveFile * | openWrite (int slot) const |
Public Member Functions inherited from Gob::SlotFile | |
SlotFile (GobEngine *vm, uint32 slotCount, const Common::String &base) | |
virtual int | getSlot (int32 offset) const =0 |
virtual int | getSlotRemainder (int32 offset) const =0 |
Protected Attributes | |
Common::String | _ext |
Protected Attributes inherited from Gob::SlotFile | |
GobEngine * | _vm |
Common::String | _base |
uint32 | _slotCount |
An indexed slot file ("foobar.s00", "foobar.s01", ...).
Common::String Gob::SlotFileIndexed::build | ( | int | slot | ) | const |
Build the save file name.
|
virtual |
Returns the highest filled slot number.
|
virtual |
Returns the size of all existing slots + the index.
|
virtual |
Creates an index in buffer.