mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 11:14:58 -06:00
Update to 7-Zip Version 21.04
- first test... no release!!!
This commit is contained in:
@@ -146,7 +146,8 @@ static void SetOutProperties(
|
||||
bool orderMode,
|
||||
UInt32 order,
|
||||
bool solidIsSpecified, UInt64 solidBlockSize,
|
||||
bool multiThreadIsAllowed, UInt32 numThreads,
|
||||
// bool multiThreadIsAllowed,
|
||||
UInt32 numThreads,
|
||||
const UString &encryptionMethod,
|
||||
bool encryptHeadersIsAllowed, bool encryptHeaders,
|
||||
bool /* sfxMode */)
|
||||
@@ -182,7 +183,9 @@ static void SetOutProperties(
|
||||
AddProp(properties, "he", encryptHeaders);
|
||||
if (solidIsSpecified)
|
||||
AddProp(properties, "s", GetNumInBytesString(solidBlockSize));
|
||||
if (multiThreadIsAllowed)
|
||||
if (
|
||||
// multiThreadIsAllowed &&
|
||||
numThreads != (UInt32)(Int32)-1)
|
||||
AddProp(properties, "mt", numThreads);
|
||||
}
|
||||
|
||||
@@ -287,6 +290,11 @@ static HRESULT ShowDialog(
|
||||
CCompressDialog dialog;
|
||||
NCompressDialog::CInfo &di = dialog.Info;
|
||||
dialog.ArcFormats = &codecs->Formats;
|
||||
{
|
||||
CObjectVector<CCodecInfoUser> userCodecs;
|
||||
codecs->Get_CodecsInfoUser_Vector(userCodecs);
|
||||
dialog.SetMethods(userCodecs);
|
||||
}
|
||||
|
||||
if (options.MethodMode.Type_Defined)
|
||||
di.FormatIndex = options.MethodMode.Type.FormatIndex;
|
||||
@@ -299,9 +307,13 @@ static HRESULT ShowDialog(
|
||||
if (!oneFile && ai.Flags_KeepName())
|
||||
continue;
|
||||
if ((int)i != di.FormatIndex)
|
||||
{
|
||||
if (ai.Flags_HashHandler())
|
||||
continue;
|
||||
if (ai.Name.IsEqualTo_Ascii_NoCase("swfc"))
|
||||
if (!oneFile || name.Len() < 4 || !StringsAreEqualNoCase_Ascii(name.RightPtr(4), ".swf"))
|
||||
continue;
|
||||
}
|
||||
dialog.ArcIndices.Add(i);
|
||||
}
|
||||
if (dialog.ArcIndices.IsEmpty())
|
||||
@@ -392,7 +404,8 @@ static HRESULT ShowDialog(
|
||||
di.Dict64,
|
||||
di.OrderMode, di.Order,
|
||||
di.SolidIsSpecified, di.SolidBlockSize,
|
||||
di.MultiThreadIsAllowed, di.NumThreads,
|
||||
// di.MultiThreadIsAllowed,
|
||||
di.NumThreads,
|
||||
di.EncryptionMethod,
|
||||
di.EncryptHeadersIsAllowed, di.EncryptHeaders,
|
||||
di.SFXMode);
|
||||
@@ -464,6 +477,13 @@ HRESULT UpdateGUI(
|
||||
tu.UpdateCallbackGUI->Init();
|
||||
|
||||
UString title = LangString(IDS_PROGRESS_COMPRESSING);
|
||||
if (!formatIndices.IsEmpty())
|
||||
{
|
||||
const int fin = formatIndices[0].FormatIndex;
|
||||
if (fin >= 0)
|
||||
if (codecs->Formats[fin].Flags_HashHandler())
|
||||
title = LangString(IDS_CHECKSUM_CALCULATING);
|
||||
}
|
||||
|
||||
/*
|
||||
if (hwndParent != 0)
|
||||
|
||||
Reference in New Issue
Block a user