Example #1
0
        public void Update()
        {
            SetNameOffset(FST.GetStringPosition());
            FST.AddString(filename);
            entryOffset = FST.curEntryOffset;
            FST.curEntryOffset++;

            if (isDir && !isRoot)
            {
                parentOffset = parent.entryOffset;
            }

            if (content != null && !isDir)
            {
                fileOffset = content.GetOffsetForFileAndIncrease(this);
            }

            foreach (FSTEntry entry in children)
            {
                entry.Update();
            }
        }