ScummVM API documentation
ZIP decompressor

Description

API related to ZIP archive files.

Functions

ArchiveCommon::makeZipArchive (const Path &name, bool flattenTree=false)
 
ArchiveCommon::makeZipArchive (const FSNode &node, bool flattenTree=false)
 
ArchiveCommon::makeZipArchive (SeekableReadStream *stream, bool flattenTree=false)
 

Function Documentation

◆ makeZipArchive() [1/3]

Archive* Common::makeZipArchive ( const Path name,
bool  flattenTree = false 
)

This factory method creates an Archive instance corresponding to the content of the ZIP compressed file with the given name.

May return 0 in case of a failure.

◆ makeZipArchive() [2/3]

Archive* Common::makeZipArchive ( const FSNode node,
bool  flattenTree = false 
)

This factory method creates an Archive instance corresponding to the content of the ZIP compressed file with the given name.

May return 0 in case of a failure.

◆ makeZipArchive() [3/3]

Archive* Common::makeZipArchive ( SeekableReadStream stream,
bool  flattenTree = false 
)

This factory method creates an Archive instance corresponding to the content of the given ZIP compressed datastream. This takes ownership of the stream, in particular, it is deleted when the ZipArchive is deleted.

May return 0 in case of a failure. In this case stream will still be deleted.