Fixes two bugs:
1) DSCSTools would pack and extract files with an odd number of files inconsistently (padding was added to the fileID list on pack, no padding was assumed on extract), fixed on lines 94 and 116 of Pull Request
2) DSCSTools would incorrectly calculate the initial offset if the blocksize < 0x20, fixed on lines 39, 40 and 95, 96
of Pull Request
Additions on lines 39, 40 and 95, 96 only true if number of files <2: can modify these checks to check if the number of files is less than 2 instead, but maybe checking against the blocksize shows intent more clearly?
Edits tested in-game: AFS2 archives with 1 and 9 files both work correctly. Also extracted + repacked DSDBbgm.steam.mvgl; 100% byte reproducibility maintained from original code.
Fixes two bugs: 1) DSCSTools would pack and extract files with an odd number of files inconsistently (padding was added to the fileID list on pack, no padding was assumed on extract), fixed on lines
94
and116
of Pull Request 2) DSCSTools would incorrectly calculate the initial offset if the blocksize < 0x20, fixed on lines39, 40
and95, 96
of Pull RequestAdditions on lines
39, 40
and95, 96
only true if number of files <2: can modify these checks to check if the number of files is less than 2 instead, but maybe checking against the blocksize shows intent more clearly?Edits tested in-game: AFS2 archives with 1 and 9 files both work correctly. Also extracted + repacked
DSDBbgm.steam.mvgl
; 100% byte reproducibility maintained from original code.