22#ifndef QUEEN_RESOURCE_H
23#define QUEEN_RESOURCE_H
25#include "common/file.h"
26#include "common/str-array.h"
27#include "common/language.h"
28#include "common/platform.h"
29#include "queen/defs.h"
30#include "queen/version.h"
48 uint8 *
loadFile(
const char *filename, uint32 skipBytes = 0, uint32 *size = NULL);
59 bool isDemo()
const {
return (_version.features & GF_DEMO) != 0; }
60 bool isInterview()
const {
return (_version.features & GF_INTERVIEW) != 0; }
61 bool isFloppy()
const {
return (_version.features & GF_FLOPPY) != 0; }
62 bool isCD()
const {
return (_version.features & GF_TALKIE) != 0; }
76 JAS_VERSION_OFFSET_DEMO = 0x119A8,
77 JAS_VERSION_OFFSET_INTV = 0xCF8,
78 JAS_VERSION_OFFSET_PC = 0x12484
85 int _currentResourceFileNum;
87 DetectedGameVersion _version;
Definition: resource.h:41
Common::File * findSound(const char *filename, uint32 *size)
returns a reference to a sound file
static ResourceEntry _resourceTablePEM10[]
resource table for english floppy version
Definition: resource.h:113
void loadTextFile(const char *filename, Common::StringArray &stringList)
loads a text file
const char * getJASVersion() const
returns JAS version string (contains language, platform and version information)
Definition: resource.h:68
void seekResourceFile(int num, uint32 offset)
seeks resource file to specific bundle and file offset
Common::Language getLanguage() const
returns the language of the game
Definition: resource.h:71
void checkJASVersion()
verify the version of the selected game
bool fileExists(const char *filename) const
returns true if the file is present in the resource
Definition: resource.h:54
static const char *const _tableFilename
resource table filename (queen.tbl)
Definition: resource.h:110
void readTableFile(uint8 version, uint32 offset)
extract the resource table for the specified game version
uint8 * loadFile(const char *filename, uint32 skipBytes=0, uint32 *size=NULL)
loads a binary file
uint32 _resourceEntries
number of entries in resource table
Definition: resource.h:90
void readTableEntries(Common::File *file)
read the resource table from the specified file
ResourceEntry * resourceEntry(const char *filename) const
returns a reference to the ReseourceEntry for the specified filename
uint8 getCompression() const
returns compression type for audio files
Definition: resource.h:65
Language
Definition: language.h:45
Definition: resource.h:34