GUI zip(zstd) turn on

This commit is contained in:
Force.Charlie
2020-06-23 23:11:54 +08:00
parent 2c34b19505
commit 425b889145
3 changed files with 7 additions and 4 deletions

View File

@@ -87,7 +87,9 @@ const char * const kMethodNames1[kNumMethodNames1] =
const char * const kMethodNames2[kNumMethodNames2] =
{
"xz"
"zstd"
, NULL
, "xz"
, "Jpeg"
, "WavPack"
, "PPMd"

View File

@@ -16,7 +16,7 @@ namespace NArchive {
namespace NZip {
const unsigned kNumMethodNames1 = NFileHeader::NCompressionMethod::kLZMA + 1;
const unsigned kMethodNames2Start = NFileHeader::NCompressionMethod::kXz;
const unsigned kMethodNames2Start = NFileHeader::NCompressionMethod::kZstd;
const unsigned kNumMethodNames2 = NFileHeader::NCompressionMethod::kWzAES + 1 - kMethodNames2Start;
extern const char * const kMethodNames1[kNumMethodNames1];
@@ -74,7 +74,7 @@ private:
m_WriteNtfsTimeExtra = true;
_removeSfxBlock = false;
m_ForceLocal = false;
m_ForceUtf8 = false;
m_ForceUtf8 = true;
_forceCodePage = false;
_specifiedCodePage = CP_OEMCP;
}

View File

@@ -223,7 +223,8 @@ static const EMethodID g_ZipMethods[] =
kDeflate64,
kBZip2,
kLZMA,
kPPMdZip
kPPMdZip,
kZSTD
};
static const EMethodID g_GZipMethods[] =