summaryrefslogtreecommitdiff
path: root/settings.cpp
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-06-20 16:05:02 -0400
committerBrian Potchik <brian@vector35.com>2025-06-20 16:05:02 -0400
commitbd163fb24e4ad95c82d769838c54b46b31262a0f (patch)
tree89b8fbdbdd6f48bae17b23beb6a32bec65f62f92 /settings.cpp
parent55b3ce7de85ef38158e0a248105d3eb2a8562871 (diff)
Update the Settings IsEmpty API for querying resources.
Diffstat (limited to 'settings.cpp')
-rw-r--r--settings.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/settings.cpp b/settings.cpp
index ba8d65f6..d06e309b 100644
--- a/settings.cpp
+++ b/settings.cpp
@@ -57,9 +57,9 @@ bool Settings::Contains(const string& key)
}
-bool Settings::IsEmpty()
+bool Settings::IsEmpty(BNSettingsScope scope)
{
- return BNSettingsIsEmpty(m_object);
+ return BNSettingsIsEmpty(m_object, nullptr, nullptr, scope);
}
@@ -202,6 +202,12 @@ string Settings::SerializeSettings(Ref<BinaryView> view, BNSettingsScope scope)
}
+bool Settings::IsEmpty(Ref<BinaryView> view, BNSettingsScope scope)
+{
+ return BNSettingsIsEmpty(m_object, view ? view->GetObject() : nullptr, nullptr, scope);
+}
+
+
bool Settings::Reset(const string& key, Ref<BinaryView> view, BNSettingsScope scope)
{
return BNSettingsReset(m_object, key.c_str(), view ? view->GetObject() : nullptr, nullptr, scope);
@@ -360,6 +366,12 @@ string Settings::SerializeSettings(Ref<Function> func, BNSettingsScope scope)
}
+bool Settings::IsEmpty(Ref<Function> func, BNSettingsScope scope)
+{
+ return BNSettingsIsEmpty(m_object, nullptr, func ? func->GetObject() : nullptr, scope);
+}
+
+
bool Settings::Reset(const string& key, Ref<Function> func, BNSettingsScope scope)
{
return BNSettingsReset(m_object, key.c_str(), nullptr, func ? func->GetObject() : nullptr, scope);