From 0c93bebaec56154f15d4b4d520860a92523df357 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 16 Aug 2024 18:23:49 -0400 Subject: Enable workflows by default. --- docs/dev/workflows.md | 6 ------ python/workflow.py | 4 ---- 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("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 MachoViewType::GetLoadSettingsForData(BinaryView* data) { if (programSettings->Get("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); } } } -- cgit v1.3.1