ScummVM API documentation
Gob::SlotFileIndexed Class Reference

#include <savehandler.h>

Inheritance diagram for Gob::SlotFileIndexed:
Gob::SlotFile Gob::SaveLoad_Inca2::GameHandler::File Gob::SaveLoad_v3::GameHandler::File Gob::SaveLoad_v4::GameHandler::File

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::InSaveFileopenRead (int slot) const
 
virtual Common::OutSaveFileopenWrite (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
 

Detailed Description

An indexed slot file ("foobar.s00", "foobar.s01", ...).

Member Function Documentation

◆ build()

Common::String Gob::SlotFileIndexed::build ( int  slot) const

Build the save file name.

◆ getSlotMax()

virtual uint32 Gob::SlotFileIndexed::getSlotMax ( ) const
virtual

Returns the highest filled slot number.

◆ tallyUpFiles()

virtual int32 Gob::SlotFileIndexed::tallyUpFiles ( uint32  slotSize,
uint32  indexSize 
) const
virtual

Returns the size of all existing slots + the index.

◆ buildIndex()

virtual void Gob::SlotFileIndexed::buildIndex ( byte *  buffer,
SavePartInfo info,
SaveConverter converter = 0,
bool  setLongest = false 
) const
virtual

Creates an index in buffer.


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