diff options
author | athrxx | 2019-01-26 15:58:47 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:20 +0100 |
commit | f0a305316c716dfadc332eb8df4c95a5e6e6cdb6 (patch) | |
tree | 63d337c001a042a8dbaf317fdcbb0c92a1a944d5 /engines/kyra/resource | |
parent | 77a7f02e9ab60ded0dac5b34228272300a1e80c9 (diff) | |
download | scummvm-rg350-f0a305316c716dfadc332eb8df4c95a5e6e6cdb6.tar.gz scummvm-rg350-f0a305316c716dfadc332eb8df4c95a5e6e6cdb6.tar.bz2 scummvm-rg350-f0a305316c716dfadc332eb8df4c95a5e6e6cdb6.zip |
KYRA: (EOB1/Amiga) - add static resources
Diffstat (limited to 'engines/kyra/resource')
-rw-r--r-- | engines/kyra/resource/resource.h | 17 | ||||
-rw-r--r-- | engines/kyra/resource/staticres.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/resource/staticres_eob.cpp | 18 |
3 files changed, 31 insertions, 6 deletions
diff --git a/engines/kyra/resource/resource.h b/engines/kyra/resource/resource.h index 077b4eab7a..a1ff902a84 100644 --- a/engines/kyra/resource/resource.h +++ b/engines/kyra/resource/resource.h @@ -455,6 +455,7 @@ enum KyraResources { kEoBBaseMagicStrings6, kEoBBaseMagicStrings7, kEoBBaseMagicStrings8, + kEoBBaseMagicStrings9, kEoBBaseExpObjectTlMode, kEoBBaseExpObjectTblIndex, @@ -486,6 +487,13 @@ enum KyraResources { kEoBBaseConeOfColdDest4, kEoBBaseConeOfColdGfxTbl, + kEoBBaseSoundMap, + kEoBBaseSoundFilesIntro, + kEoBBaseSoundFilesIngame, + kEoBBaseSoundFilesFinale, + + kEoB1BaseLevelSounds1, + kEoB1BaseLevelSounds2, kEoB1MainMenuStrings, kEoB1BonusStrings, @@ -509,6 +517,15 @@ enum KyraResources { kEoB1IntroTvlY2, kEoB1IntroTvlW, kEoB1IntroTvlH, + kEoB1IntroOrbFadePal, + + kEoB1FinaleCouncilAnim1, + kEoB1FinaleCouncilAnim2, + kEoB1FinaleCouncilAnim3, + kEoB1FinaleCouncilAnim4, + kEoB1FinaleEyesAnim, + kEoB1FinaleHandsAnim, + kEoB1FinaleTextDuration, kEoB1DoorShapeDefs, kEoB1DoorSwitchShapeDefs, diff --git a/engines/kyra/resource/staticres.cpp b/engines/kyra/resource/staticres.cpp index fb6d14dd4b..e569cf1479 100644 --- a/engines/kyra/resource/staticres.cpp +++ b/engines/kyra/resource/staticres.cpp @@ -39,7 +39,7 @@ namespace Kyra { -#define RESFILE_VERSION 92 +#define RESFILE_VERSION 93 namespace { bool checkKyraDat(Common::SeekableReadStream *file) { diff --git a/engines/kyra/resource/staticres_eob.cpp b/engines/kyra/resource/staticres_eob.cpp index 4a94c8448a..23a5203a68 100644 --- a/engines/kyra/resource/staticres_eob.cpp +++ b/engines/kyra/resource/staticres_eob.cpp @@ -432,6 +432,7 @@ void EoBCoreEngine::initStaticResource() { _magicStrings6 = _staticres->loadStrings(kEoBBaseMagicStrings6, temp); _magicStrings7 = _staticres->loadStrings(kEoBBaseMagicStrings7, temp); _magicStrings8 = _staticres->loadStrings(kEoBBaseMagicStrings8, temp); + _magicStrings9 = _staticres->loadStrings(kEoBBaseMagicStrings9, temp); _expObjectTlMode = _staticres->loadRawData(kEoBBaseExpObjectTlMode, temp); _expObjectTblIndex = _staticres->loadRawData(kEoBBaseExpObjectTblIndex, temp); @@ -460,6 +461,13 @@ void EoBCoreEngine::initStaticResource() { _coneOfColdDest4 = (const int8 *)_staticres->loadRawData(kEoBBaseConeOfColdDest4, temp); _coneOfColdGfxTbl = _staticres->loadRawData(kEoBBaseConeOfColdGfxTbl, _coneOfColdGfxTblSize); + _staticres->loadStrings(kEoBBaseSoundMap, temp); + _staticres->loadStrings(kEoBBaseLevelSounds1, temp); + _staticres->loadStrings(kEoBBaseLevelSounds2, temp); + _staticres->loadStrings(kEoBBaseSoundFilesIntro, temp); + _staticres->loadStrings(kEoBBaseSoundFilesIngame, temp); + _staticres->loadStrings(kEoBBaseSoundFilesFinale, temp); + // Hard code the following strings, since EOB I doesn't have them in the original. // EOB I doesn't have load and save menus, because there is only one single // save slot. Instead of emulating this we provide a menu similiar to EOB II. @@ -1129,11 +1137,9 @@ void EoBEngine::initStaticResource() { p->dmgDc[2].base = (int8)*ps++; ps++; p->capsFlags = *ps++; - p->typeFlags = READ_LE_UINT16(ps); - ps += 2; - ps++; - ps++; - p->experience = READ_LE_UINT16(ps); + p->typeFlags = (_flags.platform == Common::kPlatformAmiga) ? READ_BE_UINT32(++ps) : READ_LE_UINT32(ps); + ps += 4; + p->experience = (_flags.platform == Common::kPlatformAmiga) ? READ_BE_UINT16(ps) : READ_LE_UINT16(ps); ps += 2; p->u30 = *ps++; p->sound1 = (int8)*ps++; @@ -1226,6 +1232,8 @@ void EoBEngine::initSpells() { for (int i = 0; i < _numSpells; i++) { EoBSpell *s = &_spells[i]; + if (_flags.platform == Common::kPlatformAmiga) + src++; src += 4; s->flags = flagTable[i].typeFlag; s->damageFlags = flagTable[i].damageFlag; |