This commit is contained in:
Igor Pavlov
2023-12-22 17:17:05 +00:00
committed by Kornel
parent ec44a8a070
commit a36c48cece
954 changed files with 42199 additions and 25482 deletions

View File

@@ -11,6 +11,7 @@
#include "../../../Windows/Registry.h"
#include "../../../Windows/Synchronization.h"
// #include "../Explorer/ContextMenuFlags.h"
#include "ZipRegistry.h"
using namespace NWindows;
@@ -191,6 +192,7 @@ static LPCTSTR const kOptionsKeyName = TEXT("Options");
static LPCTSTR const kLevel = TEXT("Level");
static LPCTSTR const kDictionary = TEXT("Dictionary");
// static LPCTSTR const kDictionaryChain = TEXT("DictionaryChain");
static LPCTSTR const kOrder = TEXT("Order");
static LPCTSTR const kBlockSize = TEXT("BlockSize");
static LPCTSTR const kNumThreads = TEXT("NumThreads");
@@ -269,6 +271,7 @@ void CInfo::Save() const
Key_Set_UInt32(fk, kLevel, fo.Level);
Key_Set_UInt32(fk, kDictionary, fo.Dictionary);
// Key_Set_UInt32(fk, kDictionaryChain, fo.DictionaryChain);
Key_Set_UInt32(fk, kOrder, fo.Order);
Key_Set_UInt32(fk, kBlockSize, fo.BlockLogSize);
Key_Set_UInt32(fk, kNumThreads, fo.NumThreads);
@@ -326,6 +329,7 @@ void CInfo::Load()
Key_Get_UInt32(fk, kLevel, fo.Level);
Key_Get_UInt32(fk, kDictionary, fo.Dictionary);
// Key_Get_UInt32(fk, kDictionaryChain, fo.DictionaryChain);
Key_Get_UInt32(fk, kOrder, fo.Order);
Key_Get_UInt32(fk, kBlockSize, fo.BlockLogSize);
Key_Get_UInt32(fk, kNumThreads, fo.NumThreads);
@@ -549,7 +553,15 @@ void CContextMenuInfo::Load()
WriteZone = (UInt32)(Int32)-1;
Flags = (UInt32)(Int32)-1;
/* we can disable email items by default,
because email code doesn't work in some systems */
Flags = (UInt32)(Int32)-1
/*
& ~NContextMenuFlags::kCompressEmail
& ~NContextMenuFlags::kCompressTo7zEmail
& ~NContextMenuFlags::kCompressToZipEmail
*/
;
Flags_Def = false;
CS_LOCK