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);
54 bool fileExists(
const char *filename)
const {
return resourceEntry(filename) != NULL; }
57 Common::File *findSound(
const char *filename, uint32 *size);
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;
95 void checkJASVersion();
101 void seekResourceFile(
int num, uint32 offset);
104 void readTableFile(uint8 version, uint32 offset);
bool fileExists(const char *filename) const
returns true if the file is present in the resource
Definition: resource.h:54
Definition: resource.h:34
Common::Language getLanguage() const
returns the language of the game
Definition: resource.h:71
Definition: resource.h:41
uint32 _resourceEntries
number of entries in resource table
Definition: resource.h:90
static const char *const _tableFilename
resource table filename (queen.tbl)
Definition: resource.h:110
const char * getJASVersion() const
returns JAS version string (contains language, platform and version information)
Definition: resource.h:68
uint8 getCompression() const
returns compression type for audio files
Definition: resource.h:65
Language
Definition: language.h:45