IridiumIO / CompactGUI

Transparently compress active games and programs using Windows 10/11 APIs
GNU General Public License v3.0
5.11k stars 238 forks source link

Make Compact gui Act on half compressed folders like Compactor.exe #343

Closed Evonos closed 8 months ago

Evonos commented 1 year ago

Like if i want to compact a game which was partially changed compactgui only allows me ( beta ) to "Compress Again" which compresses again every single file be it new or old.

Compactor.exe from https://github.com/Freaky/Compactor Allows me to simply press "compact" and it will ONLY compact non compressed files aka it will leave the already compressed files alone which i did earlier either via compact gui or compactor.

Iridium-IO commented 1 year ago

Like if i want to compact a game which was partially changed compactgui only allows me ( beta ) to "Compress Again" which compresses again every single file be it new or old.

Compactor.exe from https://github.com/Freaky/Compactor Allows me to simply press "compact" and it will ONLY compact non compressed files aka it will leave the already compressed files alone which i did earlier either via compact gui or compactor.

I'll double check (it's definitely possible I missed this), but I'm pretty sure that if you use the same compression algorithm you used the first time it should skip over already compressed files. If you change the compression algorithm then it will recompress them.

TommyC81 commented 1 year ago

From my experience, the software does not take into account whether the file is already compressed. It re-compresses again despite using the same algorithm.

sethfoxen commented 1 year ago

I can also confirm, at least from my settings of compressing with LZX repeatedly, that "compress again" will recompress the ENTIRE directory, INCLUDING files that have already been compressed using LZX. I use LZX to compress various ISOs used for emulators, in order to maintain raw ISO support for a PS2 running over SMB.

EDIT:

I found out that I was having this issue because I had originally compressed my folders using the built in Windows compression, by right-clicking and entering properties for the folder, and then adding that same folder to CompactGUI. When I unchecked the built in compression, let Windows decompress my files, and THEN added the uncompressed folder to CompactGUI, clicking "compress again" only recompressed newly added files, instead of the whole folder again.