summaryrefslogtreecommitdiff
path: root/settings.cpp
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2019-01-25 09:55:33 -0500
committerBrian Potchik <brian@vector35.com>2019-01-25 09:55:33 -0500
commit2c80bc959151a6b9888a8521a0efbba1a1843cb6 (patch)
treefa15ba8aa71e53578665c0be69cbe5fe75b37e66 /settings.cpp
parente4bcabe6035c279502b1bf29d5b2bb431676fdc6 (diff)
Add CopyValue to Settings APi.
Diffstat (limited to 'settings.cpp')
-rw-r--r--settings.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings.cpp b/settings.cpp
index df95a56c..6f1640a6 100644
--- a/settings.cpp
+++ b/settings.cpp
@@ -105,6 +105,12 @@ string Settings::SerializeSettings(Ref<BinaryView> view, BNSettingsScope scope)
}
+bool Settings::CopyValue(const string& destRegistry, const string& id)
+{
+ return BNSettingsCopyValue(m_registry.c_str(), destRegistry.c_str(), id.c_str());
+}
+
+
bool Settings::Reset(const string& id, Ref<BinaryView> view, BNSettingsScope scope)
{
return BNSettingsReset(m_registry.c_str(), id.c_str(), view ? view->GetObject() : nullptr, scope);