ScummVM API documentation
Made::ResourceReader Class Reference

Public Member Functions

void open (const char *filename)
 
void openResourceBlocks ()
 
PictureResourcegetPicture (int index)
 
AnimationResourcegetAnimation (int index)
 
SoundResourcegetSound (int index)
 
MenuResourcegetMenu (int index)
 
FontResourcegetFont (int index)
 
GenericResourcegetXmidi (int index)
 
GenericResourcegetMidi (int index)
 
void freeResource (Resource *resource)
 

Protected Types

typedef Common::Array< ResourceSlotResourceSlots
 
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)
 
ResourceSlotgetResourceSlot (uint32 resType, uint index)
 
ResourcegetResourceFromCache (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
 

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