aboutsummaryrefslogtreecommitdiff
path: root/queen/resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'queen/resource.h')
-rw-r--r--queen/resource.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/queen/resource.h b/queen/resource.h
index 7e45a75453..7a3c914b4f 100644
--- a/queen/resource.h
+++ b/queen/resource.h
@@ -63,7 +63,7 @@ public:
//! loads the specified from the resource file
uint8 *loadFile(const char *filename, uint32 skipBytes = 0, uint32 *size = NULL, bool useMalloc = false);
-
+
//! returns true if the file is present in the resource
bool fileExists(const char *filename) const { return resourceEntry(filename) != NULL; }
@@ -74,13 +74,13 @@ public:
bool isInterview() const { return !strcmp(_versionString, "PEint"); }
bool isFloppy() const { return _versionString[0] == 'P'; }
bool isCD() const { return _versionString[0] == 'C'; }
-
+
//! returns compression type for audio files
uint8 compression() const { return _compression; }
-
+
//! returns JAS version string (contains language, platform and version information)
const char *JASVersion() const { return _versionString; }
-
+
//! returns language of the game
Language getLanguage() const;
@@ -101,10 +101,10 @@ public:
VER_COUNT = 13
};
-
+
enum {
CURRENT_TBL_VERSION = 1
- };
+ };
enum {
JAS_VERSION_OFFSET_DEMO = 0x119A8,
@@ -115,48 +115,48 @@ public:
protected:
Common::File *_resourceFile;
-
+
//! compression type for audio files
uint8 _compression;
-
+
//! JAS version string of the game
char _versionString[6];
-
+
//! number of entries in resource table
uint32 _resourceEntries;
-
+
ResourceEntry *_resourceTable;
//! look for a normal queen version (ie. queen.1)
bool findNormalVersion();
-
+
//! look for a compressed/rebuilt queen version (ie. queen.1c)
bool findCompressedVersion();
-
+
//! verify the version of the selected game
void checkJASVersion();
-
+
//! returns a reference to the ReseourceEntry for the specified filename
ResourceEntry *resourceEntry(const char *filename) const;
-
+
//! extarct the resource table for the specified game version
bool readTableFile(const GameVersion *gameVersion);
-
+
//! reads the resource table from a rebuilt datafile (ie. queen.1c)
void readTableCompResource();
-
+
//! read the resource table from the specified file
void readTableEntries(Common::File *file);
-
+
//! detect game version based on queen.1 datafile size
const GameVersion *detectGameVersion(uint32 size) const;
//! resource table filename (queen.tbl)
static const char *_tableFilename;
-
+
//! known FOTAQ versions
static const GameVersion _gameVersions[];
-
+
#ifndef __PALM_OS__
//! resource table for english floppy version
static ResourceEntry _resourceTablePEM10[];