Ejemplo n.º 1
0
        private PAKHeader ReadHeader(int idx)
        {
            var reader = OpenReader(idx);
            var header = new PAKHeader();

            header.Identifier    = new string(reader.ReadChars(4));
            header.Version       = reader.ReadInt32();
            header.Name          = new string(reader.ReadChars(32)).Trim();
            header.Unknown1      = reader.ReadInt32();
            header.GroupCount    = reader.ReadInt32();
            header.Unknown2      = reader.ReadInt32();
            header.Filler1       = reader.ReadInt32();
            header.InfoListIndex = reader.ReadInt32();
            header.TextureStart  = reader.ReadInt32();
            header.TextureEnd    = reader.ReadInt32();
            header.Filler2       = reader.ReadInt32();
            header.Unknown3      = reader.ReadInt32();
            header.Filler3       = reader.ReadInt32();
            return(header);
        }
Ejemplo n.º 2
0
 private PAKHeader ReadHeader(int idx)
 {
     var reader = OpenReader(idx);
     var header = new PAKHeader();
     header.Identifier = new string(reader.ReadChars(4));
     header.Version = reader.ReadInt32();
     header.Name = new string(reader.ReadChars(32)).Trim();
     header.Unknown1 = reader.ReadInt32();
     header.GroupCount = reader.ReadInt32();
     header.Unknown2 = reader.ReadInt32();
     header.Filler1 = reader.ReadInt32();
     header.InfoListIndex = reader.ReadInt32();
     header.TextureStart = reader.ReadInt32();
     header.TextureEnd = reader.ReadInt32();
     header.Filler2 = reader.ReadInt32();
     header.Unknown3 = reader.ReadInt32();
     header.Filler3 = reader.ReadInt32();
     return header;
 }