diff options
| author | Brian Potchik <brian@vector35.com> | 2022-10-31 15:20:31 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-11-10 16:19:13 -0500 |
| commit | ad42d73cd36d27757e57928f5c1db490fc37fb88 (patch) | |
| tree | 433902b6bffbd2c0fcc4552d604d1bf15c011f1a /settings.cpp | |
| parent | 51241bb7182524d2f7c6ed32459cf9329c847673 (diff) | |
Add LoadSettingsFile API to support ephemeral settings.
Diffstat (limited to 'settings.cpp')
| -rw-r--r-- | settings.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/settings.cpp b/settings.cpp index 14d4f0e4..d3c80952 100644 --- a/settings.cpp +++ b/settings.cpp @@ -28,6 +28,12 @@ Ref<Settings> Settings::Instance(const std::string& instanceId) } +bool Settings::LoadSettingsFile(const string& fileName, BNSettingsScope scope, Ref<BinaryView> view) +{ + return BNLoadSettingsFile(m_object, fileName.c_str(), scope, view ? view->GetObject() : nullptr); +} + + void Settings::SetResourceId(const string& resourceId) { return BNSettingsSetResourceId(m_object, resourceId.c_str()); |
