void Save_ShowPassword(bool showPassword) { CS_LOCK CKey key; CreateMainKey(key, kKeyName); key.SetValue(kShowPassword, showPassword); }
void CInfo::Save() const { CS_LOCK CKey key; CreateMainKey(key, kKeyName); key.SetValue(kLevel, (UInt32)Level); key.SetValue(kArchiver, ArcType); key.SetValue(kShowPassword, ShowPassword); key.SetValue(kEncryptHeaders, EncryptHeaders); key.RecurseDeleteKey(kArcHistory); key.SetValue_Strings(kArcHistory, ArcPaths); key.RecurseDeleteKey(kOptionsKeyName); { CKey optionsKey; optionsKey.Create(key, kOptionsKeyName); for (int i = 0; i < Formats.Size(); i++) { const CFormatOptions &fo = Formats[i]; CKey fk; fk.Create(optionsKey, fo.FormatID); SetRegUInt32(fk, kLevel, fo.Level); SetRegUInt32(fk, kDictionary, fo.Dictionary); SetRegUInt32(fk, kOrder, fo.Order); SetRegUInt32(fk, kBlockSize, fo.BlockLogSize); SetRegUInt32(fk, kNumThreads, fo.NumThreads); SetRegString(fk, kMethod, fo.Method); SetRegString(fk, kOptions, fo.Options); SetRegString(fk, kEncryptionMethod, fo.EncryptionMethod); } } }
void CInfo::Save()const { CS_LOCK CKey key; CreateMainKey(key, kOptionsInfoKeyName); key.SetValue(kWorkDirType, (UInt32)Mode); key.SetValue(kWorkDirPath, fs2us(Path)); key.SetValue(kTempRemovableOnly, ForRemovableOnly); }
void CInfo::Save() const { CS_LOCK CKey key; CreateMainKey(key, kKeyName); key.SetValue(kExtractMode, (UInt32)PathMode); key.SetValue(kOverwriteMode, (UInt32)OverwriteMode); key.SetValue(kShowPassword, ShowPassword); key.RecurseDeleteKey(kPathHistory); key.SetValue_Strings(kPathHistory, Paths); }
void CInfo::Save() const { CS_LOCK CKey key; CreateMainKey(key, kKeyName); if (PathMode_Force) key.SetValue(kExtractMode, (UInt32)PathMode); if (OverwriteMode_Force) key.SetValue(kOverwriteMode, (UInt32)OverwriteMode); Key_Set_BoolPair(key, kSplitDest, SplitDest); Key_Set_BoolPair(key, kElimDup, ElimDup); // Key_Set_BoolPair(key, kAltStreams, AltStreams); Key_Set_BoolPair(key, kNtSecur, NtSecurity); Key_Set_BoolPair(key, kShowPassword, ShowPassword); key.RecurseDeleteKey(kPathHistory); key.SetValue_Strings(kPathHistory, Paths); }