ScummVM API documentation
Toon::Resources Class Reference

Public Member Functions

 Resources (ToonEngine *vm)
 
bool openPackage (const Common::Path &file)
 
void closePackage (const Common::Path &fileName)
 
Common::SeekableReadStreamopenFile (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
 

The documentation for this class was generated from the following file: