|
1 | 1 | import ghidra.app.script.GhidraScript;
|
2 |
| -import ghidra.framework.plugintool.dialog.ExtensionDetails; |
3 |
| -import ghidra.framework.plugintool.dialog.ExtensionException; |
4 |
| -import ghidra.framework.plugintool.dialog.ExtensionUtils; |
| 2 | +import ghidra.framework.project.extensions.ExtensionDetails; |
| 3 | +import ghidra.framework.project.extensions.ExtensionUtils; |
5 | 4 | import ghidra.program.model.address.Address;
|
6 | 5 | import ghidra.program.model.data.ArrayDataType;
|
7 | 6 | import ghidra.program.model.data.DataType;
|
|
10 | 9 | import ghidra.program.model.listing.Program;
|
11 | 10 | import ghidra.program.model.mem.MemoryBlock;
|
12 | 11 |
|
13 |
| -import java.io.File; |
14 | 12 | import java.util.ArrayList;
|
15 | 13 | import java.util.List;
|
16 | 14 | import java.util.stream.Collectors;
|
@@ -160,13 +158,13 @@ public void applyDataForce(DataType data, String name, Address address) throws E
|
160 | 158 | public static String getExtensionInstallDataPath(String extensionName) {
|
161 | 159 | final List<ExtensionDetails> ps3GhidraScripts;
|
162 | 160 | try {
|
163 |
| - ps3GhidraScripts = ExtensionUtils.getInstalledExtensions(false) |
| 161 | + ps3GhidraScripts = ExtensionUtils.getInstalledExtensions() |
164 | 162 | .stream()
|
165 | 163 | .filter(extension -> extension.getName().equals(extensionName))
|
166 | 164 | .collect(Collectors.toList());
|
167 | 165 | final ExtensionDetails extensionDetails = ps3GhidraScripts.get(0);
|
168 | 166 | return extensionDetails.getInstallPath();
|
169 |
| - } catch (ExtensionException e) { |
| 167 | + } catch (Exception e) { |
170 | 168 | e.printStackTrace();
|
171 | 169 | }
|
172 | 170 |
|
|
0 commit comments