H-uru / Plasma

Cyan Worlds's Plasma game engine
http://h-uru.github.io/Plasma/
GNU General Public License v3.0
205 stars 80 forks source link

Let zlib handle the gzip header instead of parsing it manually #1427

Closed dgelessus closed 1 year ago

dgelessus commented 1 year ago

For some reason, the code in IValidateGzHeader was copied from zlib, when they could have just used it through the API... (Perhaps this is really old code from before the main zlib API had gzip support?)

dgelessus commented 1 year ago

Good idea - plZlibStream is only used by the patcher and that doesn't get tested much outside of TrollLand. (I already did a quick test with this change and the patcher seems to work.)