stormlibsharp icon indicating copy to clipboard operation
stormlibsharp copied to clipboard

Fixed incorrect dwMaxFileCount value for SFileCreateArchive

Open HelloKitty opened this issue 7 years ago • 0 comments

So, took alittle awhile to find out why MPQs had an additional 8mb of garbage data at the end of them compared to Ladik's editor. I thought maybe there was a more siginificant fault related to writing the MPQ. In was just a result of SFileCreateArchive in Stormsharplib always passing int.MaxValue even if you provided your own count.

This fix address this.

Special thanks to Sundays for walking me through some of the MPQ format stuff to help narrow down the scope of what could be causing this massive chunk of garbage data.

HelloKitty avatar Jun 19 '18 22:06 HelloKitty