Пример #1
0
        private void ReadScdHeader(int offset)
        {
            var h = new ScdHeader();

            h.Unknown1Count    = ReadInt16(offset + 0x00);
            h.Unknown2Count    = ReadInt16(offset + 0x02);
            h.EntryCount       = ReadInt16(offset + 0x04);
            h.Unknown1         = ReadInt16(offset + 0x06);
            h.Unknown1Offset   = ReadInt32(offset + 0x08);
            h.EntryTableOffset = ReadInt32(offset + 0x0C);
            h.Unknown2Offset   = ReadInt32(offset + 0x10);
            h.Unknown2         = ReadInt32(offset + 0x14);
            h.UnknownOffset1   = ReadInt32(offset + 0x18);

            this.ScdHeader = h;
        }
Пример #2
0
        private void ReadScdHeader(int offset)
        {
            var h = new ScdHeader();

            h.Unknown1Count = ReadInt16(offset + 0x00);
            h.Unknown2Count = ReadInt16(offset + 0x02);
            h.EntryCount = ReadInt16(offset + 0x04);
            h.Unknown1 = ReadInt16(offset + 0x06);
            h.Unknown1Offset = ReadInt32(offset + 0x08);
            h.EntryTableOffset = ReadInt32(offset + 0x0C);
            h.Unknown2Offset = ReadInt32(offset + 0x10);
            h.Unknown2 = ReadInt32(offset + 0x14);
            h.UnknownOffset1 = ReadInt32(offset + 0x18);

            this.ScdHeader = h;
        }