sourcehold / sourcehold-maps

Reverse engineering the map file format of Stronghold
GNU General Public License v3.0
20 stars 3 forks source link

re-compress manipulated data #3

Closed gynt closed 5 years ago

gynt commented 5 years ago

I think we can use this: https://github.com/ladislav-zezula/StormLib/blob/master/src/pklib/implode.c

But I am having no luck. I get different results when I decompress recompressed data: decompress(implode(decompress(preview))) == decompress(preview) fails

gynt commented 5 years ago

I am now having luck by using this: https://github.com/ladislav-zezula/StormLib/blob/master/src/pklib/implode.c