Free60Project / xell-reloaded

Xenon Linux Loader RELOADED / 2-stages
67 stars 42 forks source link

Fix loading gzip files in stage2 #12

Closed InvoxiPlayGames closed 1 year ago

InvoxiPlayGames commented 1 year ago

Switching to using puff in 48244cc broke loading gzip compressed files in stage2 due to an oversight where puff expects raw data, while the buffer being passed contains the gzip header. Stage1 did this correctly.

This just brings over some of the corrected logic from stage1 into stage2's file loader. This also cleans out some leftover commented code and displays useful data like the size of decompressed data and the error code returned by puff, if any.

Locoabordo commented 3 days ago

InvoxiPlayGames:gzip_load_fix