ScummVM API documentation
Queen::Resource Class Reference

Public Types

enum  { JAS_VERSION_OFFSET_DEMO = 0x119A8, JAS_VERSION_OFFSET_INTV = 0xCF8, JAS_VERSION_OFFSET_PC = 0x12484 }
 

Public Member Functions

uint8 * loadFile (const char *filename, uint32 skipBytes=0, uint32 *size=NULL)
 loads a binary file
 
void loadTextFile (const char *filename, Common::StringArray &stringList)
 loads a text file
 
bool fileExists (const char *filename) const
 returns true if the file is present in the resource
 
Common::FilefindSound (const char *filename, uint32 *size)
 returns a reference to a sound file
 
bool isDemo () const
 
bool isInterview () const
 
bool isFloppy () const
 
bool isCD () const
 
uint8 getCompression () const
 returns compression type for audio files
 
const char * getJASVersion () const
 returns JAS version string (contains language, platform and version information)
 
Common::Language getLanguage () const
 returns the language of the game
 
Common::Platform getPlatform () const
 

Protected Member Functions

void checkJASVersion ()
 verify the version of the selected game
 
ResourceEntryresourceEntry (const char *filename) const
 returns a reference to the ReseourceEntry for the specified filename
 
void seekResourceFile (int num, uint32 offset)
 seeks resource file to specific bundle and file offset
 
void readTableFile (uint8 version, uint32 offset)
 extract the resource table for the specified game version
 
void readTableEntries (Common::File *file)
 read the resource table from the specified file
 

Protected Attributes

Common::File _resourceFile
 
int _currentResourceFileNum
 
DetectedGameVersion _version
 
uint32 _resourceEntries
 number of entries in resource table
 
ResourceEntry_resourceTable
 

Static Protected Attributes

static const char *const _tableFilename
 resource table filename (queen.tbl)
 
static ResourceEntry _resourceTablePEM10 []
 resource table for english floppy version
 

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