GP-1956 update metadata on set language

This commit is contained in:
ghidra1
2022-04-25 10:11:40 -04:00
parent 47f76c78d6
commit 352fe6fd8c
2 changed files with 18 additions and 12 deletions
@@ -15,12 +15,12 @@
*/
// Reloads the language specification associated with a program at runtime.
// @category sleigh
import java.io.IOException;
import ghidra.app.script.GhidraScript;
import ghidra.program.model.lang.Language;
import ghidra.util.Msg;
import java.io.IOException;
public class ReloadSleighLangauge extends GhidraScript {
@Override
@@ -37,7 +37,6 @@ public class ReloadSleighLangauge extends GhidraScript {
e.getMessage());
return;
}
currentProgram.setLanguage(language, currentProgram.getCompilerSpec().getCompilerSpecID(),
true, monitor);
currentProgram.setLanguage(language, null, true, monitor);
}
}