aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/resource
diff options
context:
space:
mode:
authorathrxx2019-11-15 22:01:53 +0100
committerathrxx2019-12-18 20:50:41 +0100
commitf74f4929a043e278ea5bd989eeac17c18c756e22 (patch)
treea3253cead7396551cf206dce7848361f0e7822ec /engines/kyra/resource
parent5cea16658594355c35a0f83a65d4341be95e8da3 (diff)
downloadscummvm-rg350-f74f4929a043e278ea5bd989eeac17c18c756e22.tar.gz
scummvm-rg350-f74f4929a043e278ea5bd989eeac17c18c756e22.tar.bz2
scummvm-rg350-f74f4929a043e278ea5bd989eeac17c18c756e22.zip
KYRA: (EOB/PC98) - add static resources
Diffstat (limited to 'engines/kyra/resource')
-rw-r--r--engines/kyra/resource/resource.h25
-rw-r--r--engines/kyra/resource/staticres.cpp2
-rw-r--r--engines/kyra/resource/staticres_eob.cpp7
3 files changed, 33 insertions, 1 deletions
diff --git a/engines/kyra/resource/resource.h b/engines/kyra/resource/resource.h
index cbd442fcc1..64247d14e8 100644
--- a/engines/kyra/resource/resource.h
+++ b/engines/kyra/resource/resource.h
@@ -506,6 +506,17 @@ enum KyraResources {
kEoB1IntroFilesHands,
kEoB1IntroFilesWdExit,
kEoB1IntroFilesTunnel,
+
+ kEoB1IntroStringsTower,
+ kEoB1IntroStringsOrb,
+ kEoB1IntroStringsWdEntry,
+ kEoB1IntroStringsKing,
+ kEoB1IntroStringsHands,
+ kEoB1IntroStringsWdExit,
+ kEoB1IntroStringsTunnel,
+
+ kEoB1FinaleStrings,
+
kEoB1IntroOpeningFrmDelay,
kEoB1IntroWdEncodeX,
kEoB1IntroWdEncodeY,
@@ -526,7 +537,11 @@ enum KyraResources {
kEoB1FinaleCouncilAnim4,
kEoB1FinaleEyesAnim,
kEoB1FinaleHandsAnim,
+ kEoB1FinaleHandsAnim2,
+ kEoB1FinaleHandsAnim3,
kEoB1FinaleTextDuration,
+ kEoB1CreditsStrings,
+ kEoB1CreditsCharWdth,
kEoB1DoorShapeDefs,
kEoB1DoorSwitchShapeDefs,
@@ -554,6 +569,11 @@ enum KyraResources {
kEoB1CgaMappingLevel3,
kEoB1CgaMappingLevel4,
+ kEoB1Palettes16c,
+ kEoB1PalCycleData,
+ kEoB1PalCycleStyle1,
+ kEoB1PalCycleStyle2,
+
kEoB1NpcShpData,
kEoB1NpcSubShpIndex1,
kEoB1NpcSubShpIndex2,
@@ -570,6 +590,11 @@ enum KyraResources {
kEoB1Npc6Strings,
kEoB1Npc7Strings,
+ kEoB1ItemNames,
+ kEoB1Ascii2SjisTable1,
+ kEoB1Ascii2SjisTable2,
+ kEoB1FontLookupTable,
+
kEoB2MainMenuStrings,
kEoB2MainMenuUtilStrings,
diff --git a/engines/kyra/resource/staticres.cpp b/engines/kyra/resource/staticres.cpp
index fcf3158f5e..29b899a9b2 100644
--- a/engines/kyra/resource/staticres.cpp
+++ b/engines/kyra/resource/staticres.cpp
@@ -39,7 +39,7 @@
namespace Kyra {
-#define RESFILE_VERSION 94
+#define RESFILE_VERSION 95
namespace {
bool checkKyraDat(Common::SeekableReadStream *file) {
diff --git a/engines/kyra/resource/staticres_eob.cpp b/engines/kyra/resource/staticres_eob.cpp
index 2082fc6ac4..2e299670e1 100644
--- a/engines/kyra/resource/staticres_eob.cpp
+++ b/engines/kyra/resource/staticres_eob.cpp
@@ -1162,6 +1162,13 @@ void EoBEngine::initStaticResource() {
_cgaLevelMappingIndex = _staticres->loadRawData(kEoB1CgaLevelMappingIndex, temp);
for (int i = 0; i < 5; i++)
_cgaMappingLevel[i] = _staticres->loadRawData(kEoB1CgaMappingLevel0 + i, temp);
+ const uint8 *pal16c = _staticres->loadRawData(kEoB1Palettes16c, temp);
+ if (pal16c) {
+ for (int i = 0; i < 10; i++)
+ _palette16c[i] = pal16c + i * 48;
+ }
+
+ _itemNamesPC98 = _staticres->loadStrings(kEoB1ItemNames, _numItemNamesPC98);
_turnUndeadString = _staticres->loadStrings(kEoB1TurnUndeadString, temp);