()
| 84 | } |
| 85 | |
| 86 | private void initOutput() { |
| 87 | this.gui.setPossibleGames(Periphery.CONFIG.getGames()); |
| 88 | |
| 89 | this.gui.setUponSelectedGame(gameName -> { |
| 90 | SourceGame game = Periphery.CONFIG.getGame(gameName); |
| 91 | this.handleGameSelect(game); |
| 92 | }); |
| 93 | SourceGame game = Periphery.CONFIG.getGame(); |
| 94 | |
| 95 | this.handleGameSelect(game); |
| 96 | |
| 97 | this.gui.setButtonSelectOutputFile(path -> { |
| 98 | Loggger.log("searching new output for " + path); |
| 99 | File newFile = this.changeFile(new File(path)); |
| 100 | if (newFile.isDirectory()) { |
| 101 | newFile = new File(newFile, "test.vmf"); |
| 102 | } |
| 103 | Loggger.log(newFile.toString()); |
| 104 | this.gui.setOutputFileName(newFile.toString()); |
| 105 | Periphery.CONFIG.setSavePath(newFile.toString()); |
| 106 | Periphery.write(); |
| 107 | }); |
| 108 | |
| 109 | this.gui.setUponEditOutput(this::testOutputFile); |
| 110 | this.testOutputFile(); |
| 111 | } |
| 112 | |
| 113 | private void initInput() { |
| 114 |
no test coverage detected