mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-08-27 21:10:26 +00:00
Screenshots - fixed broken screenshot generators
This commit is contained in:
parent
60be8e151b
commit
23a05a4177
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue