Exemple #1
0
        public FATB(BinaryReader br, int DataOffset)
        {
            Magic      = br.ReadUInt32();
            HeaderSize = br.ReadInt32();
            EntryCount = br.ReadUInt16();
            Padding    = br.ReadInt16();

            Entries = new FATBEntry[EntryCount];
            for (int i = 0; i < EntryCount; i++)
            {
                Entries[i] = new FATBEntry(br, DataOffset);
            }
        }
Exemple #2
0
 public FATB(IReadOnlyList <string> files)
 {
     EntryCount = (ushort)files.Count;
     Entries    = new FATBEntry[EntryCount];
     for (int i = 0; i < EntryCount; i++)
     {
         if (!Directory.Exists(files[i]))
         {
             Entries[i] = new FATBEntry(files[i]);
         }
         else
         {
             Entries[i] = new FATBEntry(Directory.GetFiles(files[i]));
         }
     }
 }