diff options
author | Stefano Karapetsas <[email protected]> | 2013-11-11 07:48:39 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-11-11 07:48:39 -0800 |
commit | 36aefd0601529725931abbf7280684c1efdc3f34 (patch) | |
tree | 77f6139d8d7f6334e108c43e7ff4739f47c19848 /src/fr-command-7z.c | |
parent | d320643fa8818590744b525b497a64b4dc0878f3 (diff) | |
parent | c5b92183993bc71fd7798f3dac869174453fe1db (diff) | |
download | engrampa-36aefd0601529725931abbf7280684c1efdc3f34.tar.bz2 engrampa-36aefd0601529725931abbf7280684c1efdc3f34.tar.xz |
Merge pull request #33 from NiceandGently/master
add support for (.wim, .swm), change 7z compression level options + minor improvements
Diffstat (limited to 'src/fr-command-7z.c')
-rw-r--r-- | src/fr-command-7z.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c index 9909271..fbce9cf 100644 --- a/src/fr-command-7z.c +++ b/src/fr-command-7z.c @@ -347,13 +347,18 @@ fr_command_7z_add (FrCommand *comm, switch (comm->compression) { case FR_COMPRESSION_VERY_FAST: - fr_process_add_arg (comm->process, "-mx=1"); break; + fr_process_add_arg (comm->process, "-mx=1"); + break; case FR_COMPRESSION_FAST: - fr_process_add_arg (comm->process, "-mx=5"); break; + fr_process_add_arg (comm->process, "-mx=5"); + break; case FR_COMPRESSION_NORMAL: - fr_process_add_arg (comm->process, "-mx=5"); break; + fr_process_add_arg (comm->process, "-mx=7"); + break; case FR_COMPRESSION_MAXIMUM: - fr_process_add_arg (comm->process, "-mx=7"); break; + fr_process_add_arg (comm->process, "-mx=9"); + fr_process_add_arg (comm->process, "-m0=lzma2");; + break; } if (is_mime_type (comm->mime_type, "application/x-ms-dos-executable")) @@ -526,6 +531,7 @@ const char *sevenz_mime_types[] = { "application/x-7z-compressed", /*"application/x-cbr",*/ "application/x-cbz", "application/x-ms-dos-executable", + "application/x-ms-wim", "application/x-rar", "application/zip", NULL }; |