Public Member Functions | |
void | addArchive (const Common::Path &filename, bool isOptional=false) |
bool | addNhcArchive (const Common::Path &filename) |
ResourceFileEntry * | findEntrySimple (uint32 fileHash) |
ResourceFileEntry * | findEntry (uint32 fileHash, ResourceFileEntry **firstEntry=NULL) |
Common::SeekableReadStream * | createStream (uint32 fileHash) |
Common::SeekableReadStream * | createNhcStream (uint32 fileHash, uint32 type) |
bool | nhcExists (uint32 fileHash, uint32 type) |
bool | exists (uint32 fileHash) |
const ResourceFileEntry & | getEntry (uint index) |
uint | getEntryCount () |
void | queryResource (uint32 fileHash, ResourceHandle &resourceHandle) |
void | loadResource (ResourceHandle &resourceHandle, bool applyResourceFixes) |
void | unloadResource (ResourceHandle &resourceHandle) |
void | purgeResources () |
Protected Types | |
typedef Common::HashMap< uint32, ResourceFileEntry > | EntriesMap |
Protected Attributes | |
Common::Array< BlbArchive * > | _archives |
Common::Array< NhcArchive * > | _nhcArchives |
EntriesMap | _entries |
Common::HashMap< uint32, ResourceData * > | _data |
Common::Array< Resource * > | _resources |