28 #ifndef AURORA_BZFFILE_H 29 #define AURORA_BZFFILE_H 41 class SeekableReadStream;
109 #endif // AURORA_BZFFILE_H
Internal resource information.
const ResourceList & getResources() const
Return the list of resources.
BZFFile(Common::SeekableReadStream *bzf)
Take over this stream and read a BZF file out of it.
std::vector< IResource > IResourceList
Common::ScopedPtr< Common::SeekableReadStream > _bzf
Class to hold resource index information of a KEY file.
Class to hold resource data information of a BZF file.
A simple scoped smart pointer template.
IResourceList _iResources
Internal list of resource offsets and sizes.
const IResource & getIResource(uint32 index) const
ResourceList _resources
External list of resource names and types.
std::list< Resource > ResourceList
Base for BioWare's Aurora engine files.
uint32 offset
The offset of the resource within the BZF.
FileType type
The resource's type.
Low-level type definitions to handle fixed width types portably.
uint32 size
The resource's size.
void readVarResTable(Common::SeekableReadStream &bzf, uint32 offset)
Basic type definitions to handle files used in BioWare's Aurora engine.
An abstract KEY data file (BIF or BZF).
void mergeKEY(const KEYFile &key, uint32 dataFileIndex)
Merge information from the KEY into the data file.
Common::SeekableReadStream * getResource(uint32 index, bool tryNoCopy=false) const
Return a stream of the resource's contents.
uint32 getResourceSize(uint32 index) const
Return the size of a resource.
Base class for most files found in games using BioWare's Aurora engine.
FileType
Various file types used by the Aurora engine and found in archives.
uint32 packedSize
Raw, compressed data size.
Interface for a seekable & readable data stream.
void load(Common::SeekableReadStream &bzf)