Skip to content

Ghidra is a software reverse engineering (SRE) framework

Screenshots - fixed broken screenshot generators

dragonmacher23a05a41778f
diff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/ToolUtils.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/ToolUtils.java
index c1fcc556ca..76d0108b60 100644
--- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/ToolUtils.java
+++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/ToolUtils.java
@@ -70,6 +70,10 @@ public class ToolUtils {
Set<String> toolNames = ResourceManager.getResourceNames("defaultTools", ".tool");
for (String toolName : toolNames) {
+ if (skipTool(toolName)) {
+ continue;
+ }
+
ToolTemplate tool = readToolTemplate(toolName);
if (tool != null) {
set.add(tool);
@@ -290,10 +294,6 @@ public class ToolUtils {
public static ToolTemplate readToolTemplate(String resourceFileName) {
- if (skipTool(resourceFileName)) {
- return null;
- }
-
try (InputStream is = ResourceManager.getResourceAsStream(resourceFileName)) {
if (is == null) {
return null;
@@ -346,7 +346,8 @@ public class ToolUtils {
}
/**
- * Returns the user's personal tool chest directory path.
+ * Returns the user's personal tool chest directory path
+ * @return the path
*/
public static String getApplicationToolDirPath() {
String userSettingsPath = Application.getUserSettingsDirectory().getAbsolutePath();