(GhidraScript script)
| 36 | } |
| 37 | |
| 38 | private static void loadFnids(GhidraScript script) throws Exception { |
| 39 | fnids = new HashMap<>(); |
| 40 | File file = new File(Ps3ElfUtils.getExtensionInstallDataPath("Ps3GhidraScripts"), "data/"+NIDS_PATH); |
| 41 | if (!file.exists()) { |
| 42 | file = script.askFile("Locate nids.txt", "Load"); |
| 43 | } |
| 44 | |
| 45 | List<String> list = FileUtils.readLines(file); |
| 46 | for (String s : list) { |
| 47 | final String[] split = s.split(" "); |
| 48 | fnids.put(split[0], split[1]); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | } |
no test coverage detected