Merge remote-tracking branch 'origin/GP-1034_ryanmkurtz_ghidra_scripts--SQUASHED' into Ghidra_10.0

This commit is contained in:
ghidra1 2021-06-11 19:11:41 -04:00
commit cde02a91eb

View file

@ -549,8 +549,12 @@ public class GhidraScriptComponentProvider extends ComponentProviderAdapter {
return;
}
// Create user script directory if it doesn't exist
File userScriptsDir = new File(GhidraScriptUtil.USER_SCRIPTS_DIR);
FileUtilities.checkedMkdirs(userScriptsDir);
ResourceFile newFile = GhidraScriptUtil.createNewScript(provider,
new ResourceFile(GhidraScriptUtil.USER_SCRIPTS_DIR), getScriptDirectories());
new ResourceFile(userScriptsDir), getScriptDirectories());
SaveDialog dialog = new SaveNewScriptDialog(getComponent(), "New Script", this, newFile,
actionManager.getNewHelpLocation());
if (dialog.isCancelled()) {