From 540d081a6fd4daa31f746ddf30ccc91fb88ea04b Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 11 Dec 2011 01:57:03 +0100 Subject: KYRA: (EOB) - initial code base commit --- engines/kyra/staticres.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'engines/kyra/staticres.cpp') diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index e03369f700..acc61353f4 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -75,7 +75,9 @@ const IndexTable iGameTable[] = { { GI_KYRA1, 0 }, { GI_KYRA2, 1 }, { GI_KYRA3, 2 }, - { GI_LOL, 3 }, + { GI_EOB1, 3 }, + { GI_EOB2, 4 }, + { GI_LOL, 5 }, { -1, -1 } }; @@ -257,6 +259,12 @@ bool StaticResource::init() { { kLolButtonData, proc(loadButtonDefs), proc(freeButtonDefs) }, #endif // ENABLE_LOL +#ifdef ENABLE_EOB + { kEob2SequenceData, proc(loadEob2SeqData), proc(freeEob2SeqData) }, + { kEob2ShapeData, proc(loadEob2ShapeData), proc(freeEob2ShapeData) }, + { kEobNpcData, proc(loadEobNpcData), proc(freeEobNpcData) }, +#endif // ENABLE_EOB + { 0, 0, 0 } }; #undef proc @@ -503,9 +511,9 @@ bool StaticResource::loadHofSequenceData(Common::SeekableReadStream &stream, voi tmp_s[i].flags = stream.readUint16BE(); tmp_s[i].wsaFile = new char[14]; - stream.read(const_cast(tmp_s[i].wsaFile), 14); + stream.read(const_cast(tmp_s[i].wsaFile), 14); tmp_s[i].cpsFile = new char[14]; - stream.read(const_cast(tmp_s[i].cpsFile), 14); + stream.read(const_cast(tmp_s[i].cpsFile), 14); tmp_s[i].startupCommand = stream.readByte(); tmp_s[i].finalCommand = stream.readByte(); tmp_s[i].stringIndex1 = stream.readUint16BE(); @@ -529,7 +537,7 @@ bool StaticResource::loadHofSequenceData(Common::SeekableReadStream &stream, voi tmp_n[i].flags = stream.readUint16BE(); tmp_n[i].wsaFile = new char[14]; - stream.read(const_cast(tmp_n[i].wsaFile), 14); + stream.read(const_cast(tmp_n[i].wsaFile), 14); tmp_n[i].startframe = stream.readUint16BE(); tmp_n[i].endFrame = stream.readUint16BE(); tmp_n[i].frameDelay = stream.readUint16BE(); -- cgit v1.2.3