CascLib icon indicating copy to clipboard operation
CascLib copied to clipboard

Increase pre-allocated Casc table sizes to address crashing

Open dest1yo opened this issue 1 year ago • 0 comments

This part of the change comes from Scobalula. I submitted it on his behalf.

Problem:

Basically when casc patches certain installations, it creates more than 256 data files. It's why certain people experienced crashes when this happens.

As for the span array, He experienced this during the beta of Bocw and so many others did, span array goes above 256 and casclib doesn't check and just blindly reallocated the array.

test.txt This can happen during a heavily patched installation and when battlenet says "playable" while still updating.

In Call of Duty, it can be as (.xsub/.xpak) files are all over the place with potentially >1GB file size so multiple file spans.

dest1yo avatar Dec 27 '23 05:12 dest1yo