Esempio n. 1
0
        private static void InitHeader()
        {
            fileHeader = new DatHeader(file, 0);

            rootNode.Tag = fileHeader;

            dataOffset  = 0x20;
            relocOffset = dataOffset + fileHeader.DataBlockSize0x04;
            rootOffset0 = relocOffset + (fileHeader.RelocationTableCount0x08 * 4);
            rootOffset1 = rootOffset0 + (fileHeader.RootCount0x0C * 8);
            tableOffset = rootOffset1 + (fileHeader.RootCount0x10 * 8);
        }
Esempio n. 2
0
        private static void InitHeader()
        {
            fileHeader = new DatHeader(file, 0);

            rootNode.Tag = fileHeader;

            dataOffset  = 0x20;
            relocOffset = dataOffset + fileHeader.DataBlockSize0x04;
            rootOffset0 = relocOffset + (fileHeader.RelocationTableCount0x08 * 4);
            rootOffset1 = rootOffset0 + (fileHeader.RootCount0x0C * 8);
            tableOffset = rootOffset1 + (fileHeader.RootCount0x10 * 8);
        }