Public Member Functions | |
Resources (ToonEngine *vm) | |
bool | openPackage (const Common::Path &file) |
void | closePackage (const Common::Path &fileName) |
Common::SeekableReadStream * | openFile (const Common::Path &file) |
uint8 * | getFileData (const Common::Path &fileName, uint32 *fileSize) |
void | purgeFileData () |
Protected Member Functions | |
void | removePackageFromCache (const Common::Path &packName) |
bool | getFromCache (const Common::Path &fileName, uint32 *fileSize, uint8 **fileData) |
void | addToCache (const Common::Path &packName, const Common::Path &fileName, uint32 fileSize, uint8 *fileData) |
Protected Attributes | |
ToonEngine * | _vm |
Common::Array< uint8 * > | _allocatedFileData |
Common::Array< PakFile * > | _pakFiles |
uint32 | _cacheSize |
Common::Array< CacheEntry * > | _resourceCache |