25 #ifndef AURORA_RIMFILE_H 26 #define AURORA_RIMFILE_H 38 class SeekableReadStream;
101 #endif // AURORA_RIMFILE_H Common::SeekableReadStream * getResource(uint32 index, bool tryNoCopy=false) const
Return a stream of the resource's contents.
ResourceList _resources
External list of resource names and types.
void readResList(Common::SeekableReadStream &rim, uint32 offset)
const IResource & getIResource(uint32 index) const
uint32 getResourceSize(uint32 index) const
Return the size of a resource.
Handling various archive files.
uint32 offset
The offset of the resource within the RIM.
A simple scoped smart pointer template.
std::list< Resource > ResourceList
Base for BioWare's Aurora engine files.
Internal resource information.
Low-level type definitions to handle fixed width types portably.
const ResourceList & getResources() const
Return the list of resources.
Basic type definitions to handle files used in BioWare's Aurora engine.
IResourceList _iResources
Internal list of resource offsets and sizes.
Common::ScopedPtr< Common::SeekableReadStream > _rim
Base class for most files found in games using BioWare's Aurora engine.
std::vector< IResource > IResourceList
Class to hold resource data of a RIM archive file.
An abstract file archive.
RIMFile(Common::SeekableReadStream *rim)
Take over this stream and read a RIM file out of it.
Interface for a seekable & readable data stream.
uint32 size
The resource's size.
void load(Common::SeekableReadStream &rim)