ScummVM API documentation
ZVision::SaveManager Class Reference

Public Member Functions

 SaveManager (ZVision *engine)
 
uint32 getLastSaveTime () const
 
void saveGame (uint slot, const Common::String &saveName, bool useSaveBuffer)
 
Common::Error loadGame (int slot)
 
Common::SeekableReadStreamgetSlotFile (uint slot)
 
bool readSaveGameHeader (Common::SeekableReadStream *in, SaveGameHeader &header, bool skipThumbnail=true)
 
void prepareSaveBuffer ()
 
void flushSaveBuffer ()
 
bool scummVMSaveLoadDialog (bool isSave)
 

Member Function Documentation

◆ saveGame()

void ZVision::SaveManager::saveGame ( uint  slot,
const Common::String saveName,
bool  useSaveBuffer 
)

Copies the data from the last auto-save into a new save file. We can't use the current state data because the save menu IS a room. The file is named using ZVision::generateSaveFileName(slot)

Parameters
slotThe save slot this save pertains to. Must be [1, 20]
saveNameThe internal name for this save. This is NOT the name of the actual save file.

◆ loadGame()

Common::Error ZVision::SaveManager::loadGame ( int  slot)

Loads the state data from the save file that slot references. Uses ZVision::generateSaveFileName(slot) to get the save file name.

Parameters
slotThe save slot to load. Must be [1, 20]

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