ScummVM API documentation
Gob::SaveLoad_v4::GameHandler Class Reference

#include <saveload.h>

Inheritance diagram for Gob::SaveLoad_v4::GameHandler:
Gob::SaveHandler

Classes

class  File
 

Public Member Functions

 GameHandler (GobEngine *vm, const char *target)
 
int getLastSlot () const
 
int32 getSize () override
 
bool load (int16 dataVar, int32 size, int32 offset) override
 
bool save (int16 dataVar, int32 size, int32 offset) override
 
bool saveScreenProps (int slot, const byte *props)
 
bool loadScreenProps (int slot, byte *props)
 
- Public Member Functions inherited from Gob::SaveHandler
 SaveHandler (GobEngine *vm)
 
virtual bool loadToRaw (byte *ptr, int32 size, int32 offset)
 
virtual bool saveFromRaw (const byte *ptr, int32 size, int32 offset)
 
virtual bool deleteFile ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Gob::SaveHandler
static uint32 getVarSize (GobEngine *vm)
 
- Protected Attributes inherited from Gob::SaveHandler
GobEngine_vm
 

Detailed Description

Handles the save slots.

Member Function Documentation

◆ getSize()

int32 Gob::SaveLoad_v4::GameHandler::getSize ( )
overridevirtual

Returns the file's (virtual) size.

Implements Gob::SaveHandler.

◆ load()

bool Gob::SaveLoad_v4::GameHandler::load ( int16  dataVar,
int32  size,
int32  offset 
)
overridevirtual

Loads (parts of) the file.

Implements Gob::SaveHandler.

◆ save()

bool Gob::SaveLoad_v4::GameHandler::save ( int16  dataVar,
int32  size,
int32  offset 
)
overridevirtual

Saves (parts of) the file.

Implements Gob::SaveHandler.


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