mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-3697 Added delayed ProjectFileManager disposal in support of URL use
and opening linked project files and renamed ProjectFileData to DefaultProjectData.
This commit is contained in:
parent
5ef4b269a1
commit
3eb642885c
51 changed files with 1636 additions and 813 deletions
|
@ -75,7 +75,16 @@ public class AskScript extends GhidraScript {
|
|||
}
|
||||
|
||||
Program prog = askProgram("Please choose a program to open.");
|
||||
println("Program picked: " + prog.getName());
|
||||
if (prog != null) {
|
||||
// NOTE: if prog is not null script must release it when done using.
|
||||
// This may also be accomplished via an overridden cleanup(boolean) method.
|
||||
try {
|
||||
println("Program picked: " + prog.getName());
|
||||
}
|
||||
finally {
|
||||
prog.release(this); // will remain open in tool if applicable
|
||||
}
|
||||
}
|
||||
|
||||
DomainFile domFile = askDomainFile("Which domain file would you like?");
|
||||
println("Domain file: " + domFile.getName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue