#include <savefile.h>
Public Member Functions | |
SaveReader (uint32 partCount, uint32 slot, const Common::String &fileName) | |
SaveReader (uint32 partCount, uint32 slot, Common::SeekableReadStream &stream) | |
bool | load () |
bool | readPart (uint32 partN, SavePart *part) const |
bool | readPartHeader (uint32 partN, SaveHeader *header) const |
Public Member Functions inherited from Gob::SaveContainer | |
SaveContainer (uint32 partCount, uint32 slot) | |
uint32 | getSlot () const |
uint32 | getSize () const |
bool | hasAllParts () const |
void | clear () |
bool | writePart (uint32 partN, const SavePart *part) |
bool | readPart (uint32 partN, SavePart *part) const |
bool | readPartHeader (uint32 partN, SaveHeader *header) const |
Static Public Member Functions | |
static bool | getInfo (Common::SeekableReadStream &stream, SavePartInfo &info) |
static bool | getInfo (const Common::String &fileName, SavePartInfo &info) |
Static Public Member Functions inherited from Gob::SaveContainer | |
static bool | isSave (Common::SeekableReadStream &stream) |
Protected Member Functions | |
Common::InSaveFile * | openSave () |
Protected Member Functions inherited from Gob::SaveContainer | |
uint32 | calcSize () const |
bool | read (Common::ReadStream &stream) |
bool | write (Common::WriteStream &stream) const |
Static Protected Member Functions | |
static Common::InSaveFile * | openSave (const Common::String &fileName) |
Static Protected Member Functions inherited from Gob::SaveContainer | |
static Common::Array< PartInfo > * | getPartsInfo (Common::SeekableReadStream &stream) |
Protected Attributes | |
Common::String | _fileName |
Common::SeekableReadStream * | _stream |
bool | _loaded |
Protected Attributes inherited from Gob::SaveContainer | |
uint32 | _partCount |
uint32 | _slot |
SaveHeader | _header |
Common::Array< Part * > | _parts |
Additional Inherited Members | |
Static Public Attributes inherited from Gob::SaveContainer | |
static const uint32 | kVersion = 1 |
static const uint32 | kID = MKTAG('C','O','N','T') |
Protected Types inherited from Gob::SaveContainer | |
typedef Common::Array< Part * >::iterator | PartIterator |
typedef Common::Array< Part * >::const_iterator | PartConstIterator |
Reads a save.
|
static |
Find and read the save's info part.
|
static |
Find and read the save's info part.