Exemplo n.º 1
0
        public BSAFileEntry(Archive archive, string path, uint offset, uint size)
            : base(archive)
        {
            this.Version = BSAFileVersion.Morrowind;

            this.FullPath = path;
            this.Offset   = offset;
            this.Size     = size;
        }
Exemplo n.º 2
0
        public BSAFileEntry(Archive archive, DAT2FileEntry entry)
            : base(archive)
        {
            this.Version = BSAFileVersion.Fallout2;

            this.FullPath   = entry.Filename;
            this.Offset     = entry.Offset;
            this.Size       = entry.PackedSize;
            this.RealSize   = entry.RealSize;
            this.Compressed = entry.Compressed;
        }
Exemplo n.º 3
0
        public BSAFileEntry(Archive archive, bool compressed, string folder, uint offset, uint size)
            : base(archive)
        {
            this.Version = BSAFileVersion.BSA;

            this.Compressed       = compressed;
            this.FullPath         = folder;
            this.FullPathOriginal = this.FullPath;
            this.Offset           = offset;
            this.Size             = size;
        }
Exemplo n.º 4
0
        public BSAFileEntry(Archive archive, bool compressed, string folder, uint offset, uint size)
            : base(archive)
        {
            this.Version = BSAFileVersion.BSA;

            this.Compressed = compressed;
            this.FullPath   = folder;
            this.Offset     = offset;
            this.Size       = size;

            if (this.Archive.RetrieveRealSize)
            {
                this.RealSize = this.BinaryReader.ReadUInt32From((long)Offset);
            }
        }