SLADE icon indicating copy to clipboard operation
SLADE copied to clipboard

PK7 / LZMA support

Open OrdinaryMagician opened this issue 5 years ago • 3 comments

The other suggestion reminded me I had to ask this. What's the likelihood of supporting PK7 (renamed 7z archive) and also PK3/ZIP compressed using LZMA (which one of our projects uses, and gzdoom can open it)?

OrdinaryMagician avatar Aug 09 '19 16:08 OrdinaryMagician

Basically it requires writing a SLADE-native Zip handler so as to stop using the one from wxWidgets.

The biggest issue is that zip files store a lot of metadata that SLADE doesn't care about (such as timestamps, user rights, owner names, etc.) so handling that metadata would have to be a first step if we don't want SLADE to lose it all when editing zips.

Gaerzi avatar Aug 10 '19 16:08 Gaerzi

There is also libarchive, which I've managed to get working somewhat in the past. The main problem with it is I'm not sure it has any way to simply copy compressed data from one archive to another like the wx zip stuff has, which makes writing zip/7z files with it a lot slower than needed (since it has to recompress everything every time)

I might have just been missing something though

sirjuddington avatar Aug 11 '19 21:08 sirjuddington

I'm surprised this hasn't been handled yet due to all the new mods being distributed in pk7.

devlman127 avatar Mar 09 '24 17:03 devlman127