mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
add support for the hebrew talkie version and warn the user if s/he's using an old version of the tbl file
svn-id: r12826
This commit is contained in:
parent
d21b5455c6
commit
f4b3100b35
@ -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;
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user