Example #1
0
        protected void ReadImageDataBlock(ScummBinaryReader reader, Image image, Color[] roomPalette)
        {
            Tuple <uint, string> findResult = reader.FindOneDataBlockOf("SMAP", "BOMP");

            if (findResult.Item1 == 0)
            {
                throw new InvalidOperationException("Could not find image data block.");
            }

            if (findResult.Item2 == "SMAP")
            {
                ReadSMAP(reader, image, roomPalette);
            }
            //else
            //    reader.BaseStream.Position += findResult.Item1 - 8;
        }