ScummVM API documentation
Ultima::Ultima8::SavegameWriter Class Reference

Public Member Functions

 SavegameWriter (Common::WriteStream *ws)
 
bool writeFile (const Std::string &name, const uint8 *data, uint32 size)
 
bool writeFile (const Std::string &name, Common::MemoryWriteStreamDynamic *buf)
 
bool finish ()
 finish savegame
 

Member Function Documentation

◆ writeFile() [1/2]

bool Ultima::Ultima8::SavegameWriter::writeFile ( const Std::string name,
const uint8 *  data,
uint32  size 
)

write a file to the savegame

Parameters
namename of the file
datathe data
size(in bytes) of data

◆ writeFile() [2/2]

bool Ultima::Ultima8::SavegameWriter::writeFile ( const Std::string name,
Common::MemoryWriteStreamDynamic buf 
)

write a file to the savegame from a memory stream

Parameters
namename of the file
bufthe MemoryWriteStreamDynamic to save

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