Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit 87b75e7

Browse files
committed
Allow repeated analyis with warning
1 parent 79b397a commit 87b75e7

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Plugin/Commands.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@ void Commands::analyzeStructures(BinaryViewRef bv)
2323
{
2424
if (GlobalState::hasFlag(bv, Flag::DidRunWorkflow)
2525
|| GlobalState::hasFlag(bv, Flag::DidRunStructureAnalysis)) {
26-
BinaryNinja::ShowMessageBox("Error",
27-
"Structure analysis has already been performed on this binary.");
28-
return;
26+
auto result = BinaryNinja::ShowMessageBox("Error",
27+
"Structure analysis has already been performed fon this binary. "
28+
"Repeated analysis may cause unexpected behavior.* Continue?\n\n"
29+
"*If you undid analysis, this message can be safely ignored.",
30+
BNMessageBoxButtonSet::YesNoButtonSet,
31+
BNMessageBoxIcon::QuestionIcon);
32+
33+
if (result != BNMessageBoxButtonResult::YesButton)
34+
return;
2935
}
3036

3137
SharedAnalysisInfo info;

0 commit comments

Comments
 (0)