diff options
| author | Brian Potchik <brian@vector35.com> | 2024-08-16 18:23:49 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2024-08-16 18:23:49 -0400 |
| commit | 0c93bebaec56154f15d4b4d520860a92523df357 (patch) | |
| tree | 8a19bd01a38c6bff6fafbe0bcc86a99f1aea58f6 | |
| parent | de9584d8710144e352dbf09c5c2d1d46751d2f20 (diff) | |
Enable workflows by default.
| -rw-r--r-- | docs/dev/workflows.md | 6 | ||||
| -rw-r--r-- | python/workflow.py | 4 | ||||
| -rw-r--r-- | view/macho/machoview.cpp | 6 |
3 files changed, 2 insertions, 14 deletions
diff --git a/docs/dev/workflows.md b/docs/dev/workflows.md index 561f79eb..963371b9 100644 --- a/docs/dev/workflows.md +++ b/docs/dev/workflows.md @@ -41,13 +41,7 @@ Binary Ninja Workflows is an analysis orchestration framework which simplifies t # Getting Started --- -## Enable -By default, Binary Ninja Workflows is disabled. Enable the feature via *Settings* in the UI, or with the following: - -``` -Settings().set_bool('workflows.enable', True) -``` ## Explore diff --git a/python/workflow.py b/python/workflow.py index 29d86f5a..925c2bf0 100644 --- a/python/workflow.py +++ b/python/workflow.py @@ -228,10 +228,6 @@ class Workflow(metaclass=_WorkflowMetaclass): it's possible to add and remove activities, as well as change the execution strategy. In order to use the Workflow on a binary it must be \ registered. Once registered the Workflow is immutable and available for use. - Currently, Workflows is disabled by default and can be enabled via Settings:: - - >>> Settings().set_bool('workflows.enable', True) - Retrieve the default Workflow by creating a Workflow object:: >>> Workflow() diff --git a/view/macho/machoview.cpp b/view/macho/machoview.cpp index 40745e0e..ad20ebaf 100644 --- a/view/macho/machoview.cpp +++ b/view/macho/machoview.cpp @@ -1861,8 +1861,7 @@ bool MachoView::InitializeHeader(MachOHeader& header, bool isMainHeader, uint64_ { if (programSettings->Get<bool>("corePlugins.workflows.objc")) { - programSettings->Set("workflows.enable", true, this); - programSettings->Set("workflows.functionWorkflow", "core.function.objectiveC", this); + programSettings->Set("analysis.workflows.functionWorkflow", "core.function.objectiveC", this); } } } @@ -3912,8 +3911,7 @@ Ref<Settings> MachoViewType::GetLoadSettingsForData(BinaryView* data) { if (programSettings->Get<bool>("corePlugins.workflows.objc")) { - programSettings->Set("workflows.enable", true, viewRef); - programSettings->Set("workflows.functionWorkflow", "core.function.objectiveC", viewRef); + programSettings->Set("analysis.workflows.functionWorkflow", "core.function.objectiveC", viewRef); } } } |
