CascLib
CascLib copied to clipboard
Increase pre-allocated Casc table sizes to address crashing
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.