示例#1
0
文件: FATB.cs 项目: wowjinxy/pkNX
        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);
            }
        }
示例#2
0
文件: FATB.cs 项目: wowjinxy/pkNX
 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]));
         }
     }
 }