Beispiel #1
0
        public void Read(BundleReader reader)
        {
            if (HasBlockInfo(reader.Type, reader.Generation))
            {
                Unknown0   = reader.ReadInt32();
                Unknown1   = reader.ReadInt32();
                Unknown2   = reader.ReadInt32();
                Unknown3   = reader.ReadInt32();
                BlockInfos = reader.ReadBundleArray <BlockInfo>();
            }

            Entries = reader.ReadBundleArray <BundleFileEntry>();
        }
Beispiel #2
0
 public void Read(BundleReader reader)
 {
     if (HasBlobIndex(reader.Generation))
     {
         Offset     = reader.ReadInt64();
         Size       = reader.ReadInt64();
         BlobIndex  = reader.ReadInt32();
         NameOrigin = reader.ReadStringZeroTerm();
     }
     else
     {
         NameOrigin = reader.ReadStringZeroTerm();
         Offset     = reader.ReadInt32();
         Size       = reader.ReadInt32();
     }
     Name = FilenameUtils.FixFileIdentifier(NameOrigin);
 }
Beispiel #3
0
 public void Read(BundleReader reader)
 {
     if (HasBlobIndex(reader.Signature))
     {
         Offset     = reader.ReadInt64();
         Size       = reader.ReadInt64();
         BlobIndex  = reader.ReadInt32();
         PathOrigin = reader.ReadStringZeroTerm();
     }
     else
     {
         PathOrigin = reader.ReadStringZeroTerm();
         Offset     = reader.ReadInt32();
         Size       = reader.ReadInt32();
     }
     Path = FilenameUtils.FixFileIdentifier(PathOrigin);
 }