public BBDLCatalog Read(BBDLReader r) { size = r.ReadUInt32(); checksum = r.ReadUInt32(); r.BaseStream.Seek(0x8, SeekOrigin.Current); return(this); }
public BBDLVersion Read(BBDLReader r) { index = r.ReadUInt32(); offset = r.ReadUInt32(); ver_file_size = r.ReadUInt32(); ver_file_count = r.ReadUInt32(); path = new string(r.ReadChars(0x20)); return(this); }
public BBDLFileListing Read(BBDLReader r) { size = r.ReadUInt32(); checksum = r.ReadUInt32(); r.BaseStream.Seek(0x8, SeekOrigin.Current); path = new string(r.ReadChars(0x80)); return(this); }
public BBDLFile Read(BBDLReader r) { header.Read(r); catalog.Read(r); for (int i = 0; i < header.version_count; i++) { versions.Add(new BBDLVersion().Read(r)); } for (int i = 0; i < header.total_file_count; i++) { file_listings.Add(new BBDLFileListing().Read(r)); } return(this); }
public BBDLHeader Read(BBDLReader r) { type = new string(r.ReadChars(0x4)); unk0 = r.ReadUInt32(); r.BaseStream.Seek(0x04, SeekOrigin.Current); version_count = r.ReadUInt32(); unk1 = r.ReadUInt32(); rounded_size = r.ReadUInt32(); total_file_count = r.ReadUInt32(); total_file_size = r.ReadUInt32(); unk2 = r.ReadUInt32(); checksum = r.ReadUInt32(); r.BaseStream.Seek(0x08, SeekOrigin.Begin); return(this); }
public static BBDLFile ReadBBDL(string path) { using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read)) using (var reader = new BBDLReader(stream)) return(new BBDLFile().Read(reader)); }