Ejemplo n.º 1
0
        private void LoadBigs(String directory, bool includeMods)
        {
            if (!Directory.Exists(directory))
            {
                return;
            }

            string[] bigs;

            if (includeMods)
            {
                bigs = Directory.GetFiles(directory, "*.big", SearchOption.AllDirectories);
            }
            else
            {
                bigs = Directory.GetFiles(directory, "*_000?.big", SearchOption.AllDirectories);
            }

            foreach (var file in bigs)
            {
                Big big = new Big();
                big.Load(file);
                Bigs.Add(big);
            }
        }
Ejemplo n.º 2
0
 public BigFileEntryInternal(Big parent, UInt32 size_unc, UInt32 size, UInt32 offset, UInt32 fileID, UInt32 flags) : base(fileID, flags)
 {
     _parent            = parent;
     _offset            = offset;
     _size              = size;
     _size_uncompressed = size_unc;
 }