Skip to content

Commit a3b6717

Browse files
committed
Implement actionSetEncryption
1 parent 8edeab5 commit a3b6717

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

ACEs.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,10 +1665,17 @@ auto FUSION_API actionSetCompression(RunData* const run_data, ac_param_t const p
16651665
auto FUSION_API actionSetEncryption(RunData* const run_data, ac_param_t const param0, ac_param_t) noexcept
16661666
-> action_return_t
16671667
{
1668+
string_view_t const new_encrypt_key{reinterpret_cast<TCHAR const*>(param0)};
16681669
Data& data{*(run_data->data)};
16691670

1670-
NOT_YET_IMPLEMENTED
1671-
//
1671+
if(std::empty(new_encrypt_key))
1672+
{
1673+
data.settings.encrypt_key.reset();
1674+
}
1675+
else
1676+
{
1677+
data.settings.encrypt_key.emplace(lSDK::narrow_from_wide(new_encrypt_key));
1678+
}
16721679

16731680
return action_return_t();
16741681
}

Properties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ auto FUSION_API GetPropValue(mv* const mV, SerializedEditData* serialized_edit_d
190190
{
191191
switch(property_id)
192192
{
193-
case PropId::Version : return new CPropStringValue(_T("Unicode, ") _T(__DATE__) _T(" (v0.4.2-popgoes)"));
193+
case PropId::Version : return new CPropStringValue(_T("Unicode, ") _T(__DATE__) _T(" (v0.4.3-popgoes)"));
194194
case PropId::DefPath : return new CPropStringValue(serialized_edit_data->deserialize(std::nullopt).defaultFile.c_str());
195195
case PropId::DefFolder : return new CPropDWordValue (serialized_edit_data->deserialize(std::nullopt).defaultFolder);
196196
case PropId::DefaultText : return new CPropStringValue(serialized_edit_data->deserialize(std::nullopt).defaultText.c_str());

0 commit comments

Comments
 (0)