diff options
-rw-r--r-- | queen/resource.cpp | 11 | ||||
-rw-r--r-- | queen/resource.h | 16 |
2 files changed, 17 insertions, 10 deletions
diff --git a/queen/resource.cpp b/queen/resource.cpp index aba7015487..5c703c3dac 100644 --- a/queen/resource.cpp +++ b/queen/resource.cpp @@ -37,9 +37,10 @@ const GameVersion Resource::_gameVersions[] = { { "PIM10", 0x000866B1, 22461366 }, { "CIM10", 0x0008BEE2, 190795582 }, { "CSM10", 0x000B343C, 190730602 }, - { "PE100", 0x000DA981, 3724538 }, - { "PE100", 0x000DB63A, 3732177 }, - { "PEint", 0x000DC2F3, 1915913 } + { "CHM10", 0x000DA981, 190705558 }, + { "PE100", 0x00101EC6, 3724538 }, + { "PE100", 0x00102B7F, 3732177 }, + { "PEint", 0x00103838, 1915913 } }; @@ -187,6 +188,8 @@ Language Resource::getLanguage() const { return ITALIAN; case 'S': return SPANISH; + case 'H': + return HEBREW; default: return ENGLISH; } @@ -198,6 +201,8 @@ bool Resource::readTableFile(const GameVersion *gameVersion) { if (!tableFile.isOpen()) tableFile.open(_tableFilename, ""); // try current directory if (tableFile.isOpen() && tableFile.readUint32BE() == 'QTBL') { + if (tableFile.readUint32BE() != CURRENT_TBL_VERSION) + warning("Incorrect version of queen.tbl, please update it"); tableFile.seek(gameVersion->tableOffset); readTableEntries(&tableFile); return true; diff --git a/queen/resource.h b/queen/resource.h index 1e97444463..c52b7ab45c 100644 --- a/queen/resource.h +++ b/queen/resource.h @@ -40,14 +40,16 @@ enum Version { // VER_SPA_FLOPPY VER_SPA_TALKIE = 8, // VER_HEB_FLOPPY - // VER_HEB_TALKIE - VER_DEMO_PCGAMES = 9, - VER_DEMO = 10, - VER_INTERVIEW = 11, + VER_HEB_TALKIE = 9, + VER_DEMO_PCGAMES = 10, + VER_DEMO = 11, + VER_INTERVIEW = 12, - VER_COUNT = 12 + VER_COUNT = 13 }; +enum { CURRENT_TBL_VERSION = 1 }; + struct ResourceEntry { char filename[13]; uint8 bundle; @@ -96,8 +98,8 @@ public: enum { JAS_VERSION_OFFSET_DEMO = 0x119A8, - JAS_VERSION_OFFSET_INTV = 0xCF8, - JAS_VERSION_OFFSET = 0x12484 + JAS_VERSION_OFFSET_INTV = 0xCF8, + JAS_VERSION_OFFSET = 0x12484 }; protected: |