diff options
-rw-r--r-- | engines/access/resources.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/engines/access/resources.cpp b/engines/access/resources.cpp index a7b23eb56d..2b7f1aa8f3 100644 --- a/engines/access/resources.cpp +++ b/engines/access/resources.cpp @@ -70,7 +70,20 @@ bool Resources::load(Common::String &errorMessage) { _datIndex[idx]._gameId = f.readByte(); _datIndex[idx]._discType = f.readByte(); _datIndex[idx]._demoType = f.readByte(); - _datIndex[idx]._language = (Common::Language)f.readByte(); + + byte language = f.readByte(); + switch (language) { + case 0: + _datIndex[idx]._language = (Common::Language)0; + break; + case 5: + _datIndex[idx]._language = Common::EN_ANY; + break; + default: + error("Unknown language"); + break; + } + _datIndex[idx]._fileOffset = f.readUint32LE(); } |