Public Member Functions | |
void | open (const char *filename) |
void | openResourceBlocks () |
PictureResource * | getPicture (int index) |
AnimationResource * | getAnimation (int index) |
SoundResource * | getSound (int index) |
MenuResource * | getMenu (int index) |
FontResource * | getFont (int index) |
GenericResource * | getXmidi (int index) |
GenericResource * | getMidi (int index) |
void | freeResource (Resource *resource) |
Protected Types | |
typedef Common::Array< ResourceSlot > | ResourceSlots |
typedef Common::HashMap< uint32, ResourceSlots * > | ResMap |
Protected Member Functions | |
void | openResourceBlock (const char *filename, Common::File *blockFile, uint32 resType) |
void | loadIndex (ResourceSlots *slots) |
template<class T > | |
T * | createResource (uint32 resType, int index) |
bool | loadResource (ResourceSlot *slot, byte *&buffer, uint32 &size) |
ResourceSlot * | getResourceSlot (uint32 resType, uint index) |
Resource * | getResourceFromCache (ResourceSlot *slot) |
void | addResourceToCache (ResourceSlot *slot, Resource *res) |
void | tossResourceFromCache (ResourceSlot *slot) |
void | purgeCache () |
Protected Attributes | |
Common::File * | _fd |
Common::File * | _fdPics |
Common::File * | _fdSounds |
Common::File * | _fdMusic |
bool | _isV1 |
ResMap | _resSlots |
int | _cacheCount |
int | _cacheDataSize |