We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24366a9 commit a0fe329Copy full SHA for a0fe329
crates/league-modpkg/src/lib.rs
@@ -43,6 +43,8 @@ pub struct Modpkg<TSource: Read + Seek + Default> {
43
#[br(count = wad_path_count)]
44
wad_paths: Vec<NullString>,
45
46
+ // alan: pretty sure this works to align the individual chunks - https://github.com/jam1garner/binrw/issues/68
47
+ #[brw(align_before = 8)]
48
#[br(count = chunk_count, map = |m: Vec<ModpkgChunk>| m.into_iter().map(|c| (c.path_hash, c)).collect())]
49
#[bw(map = |m| m.values().copied().collect_vec())]
50
chunks: HashMap<u64, ModpkgChunk>,
0 commit comments