Skip to content

Commit

Permalink
4096 DAT file alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHeitmann committed Nov 11, 2024
1 parent 1824910 commit e1bb2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fileTypeUtils/dat/datRepacker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Future<void> repackDat(String datDir, String exportPath) async {
List<int> fileOffsets = [];
var currentOffset = hashMapOffset + hashMapSize;
for (int i = 0; i < fileList.length; i++) {
currentOffset = (currentOffset / 32).ceil() * 32;
currentOffset = (currentOffset / 4096).ceil() * 4096;
fileOffsets.add(currentOffset);
currentOffset += fileSizes[i];
}
Expand Down

0 comments on commit e1bb2eb

Please sign in to comment.