GP-4040 added ability for scripts to open programs that need to be upgraded, with ask options

This commit is contained in:
ghidragon 2023-12-05 18:33:17 -05:00 committed by ghidra1
parent e81515d9d8
commit 514c04906b
6 changed files with 142 additions and 43 deletions

View file

@ -75,7 +75,7 @@ public class AskValuesExampleScript extends GhidraScript {
// show up in the tool and when you release the consumer, it will be closed.
// NOTE: if you call getProgram() more than once, the consumer will be added multiple times
// and you must release it multiple times
Program program = values.getProgram("Other Program", this, state.getTool());
Program program = values.getProgram("Other Program", this, state.getTool(), true);
println("Name = " + name);
println("Count = " + age);