NANCY: Read MARK chunk

Added a struct corresponding to the MARK boot chunk,
which contains the source rects for the autotext markings
introduced in nancy8 (and used in the journal).
This commit is contained in:
Kaloyan Chehlarski 2024-02-08 20:36:46 +01:00
parent 0b8e43f65f
commit b51cb98d42
3 changed files with 11 additions and 0 deletions

View File

@ -809,4 +809,8 @@ TABL::TABL(Common::SeekableReadStream *chunkStream) : EngineData(chunkStream) {
chunkStream->skip((20 - numEntries) * 1000);
}
MARK::MARK(Common::SeekableReadStream *chunkStream) : EngineData(chunkStream) {
readRectArray(*chunkStream, _markSrcs, 5);
}
} // End of namespace Nancy

View File

@ -489,6 +489,12 @@ struct TABL : public EngineData {
Common::Array<Common::String> strings;
};
struct MARK : public EngineData {
MARK(Common::SeekableReadStream *chunkStream);
Common::Array<Common::Rect> _markSrcs;
};
} // End of namespace Nancy
#endif // NANCY_ENGINEDATA_H

View File

@ -454,6 +454,7 @@ void NancyEngine::bootGameEngine() {
LOAD_BOOT(RCPR)
LOAD_BOOT(RCLB)
LOAD_BOOT(TABL)
LOAD_BOOT(MARK)
if (g_nancy->getGameType() <= kGameTypeNancy7) {
LOAD_BOOT(LOAD)