ScummVM API documentation
Hopkins::SaveLoadManager Class Reference

Public Member Functions

 SaveLoadManager (HopkinsEngine *vm)
 
bool saveExists (const Common::String &file)
 
bool save (const Common::String &file, const void *buf, size_t n)
 
bool saveFile (const Common::String &file, const void *buf, size_t n)
 
void load (const Common::String &file, byte *buf)
 
void writeSavegameHeader (Common::OutSaveFile *out, hopkinsSavegameHeader &header)
 
WARN_UNUSED_RESULT bool readSavegameHeader (int slot, hopkinsSavegameHeader &header, bool skipThumbnail=true)
 
Common::Error saveGame (int slot, const Common::String &saveName)
 
Common::Error loadGame (int slot)
 
void convertThumb16To8 (Graphics::Surface *thumb16, Graphics::Surface *thumb8)
 

Static Public Member Functions

static WARN_UNUSED_RESULT bool readSavegameHeader (Common::InSaveFile *in, hopkinsSavegameHeader &header, bool skipThumbnail=true)
 

Member Function Documentation

◆ convertThumb16To8()

void Hopkins::SaveLoadManager::convertThumb16To8 ( Graphics::Surface thumb16,
Graphics::Surface thumb8 
)

Converts a 16-bit thumbnail to 8 bit paletted using the currently active palette.


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