mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
ACCESS: AMAZON: Fix crash due to Common::Language change
Thanks to eriktorbjorn for noticing a new addition to the Common::Language enum was breaking the game
This commit is contained in:
parent
0146ae2255
commit
b35c5cba39
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user