示例#1
0
        private void RetrieveMMDX()
        {
            int size = 0x8;

            if (models)
            {
                size += obj.ReadInt(0x10);

                adt.AddEmptyBytes(currentPos, size);
                obj.BlockCopy(0xC, adt, currentPos, size);
                obj.RemoveBytes(0, size + 0xC);
            }
            else
            {
                adt.AddEmptyBytes(currentPos, size);
                adt.WriteHeaderMagic(currentPos, "MMDX");
                obj.RemoveBytes(0, obj.ReadInt(0x10) + 0xC + 0x8);
            }

            adt.WriteInt(0x20, currentPos - 0x14);
            currentPos += size;
        }