MCPcopy Create free account
hub / github.com/badvision/jace / loadCheats

Method loadCheats

src/main/java/jace/ui/MetacheatUI.java:167–178  ·  view source on GitHub ↗
(ActionEvent event)

Source from the content-addressed store, hash-verified

165 }
166
167 @FXML
168 void loadCheats(ActionEvent event) {
169 Emulator.whileSuspended(c-> {
170 FileChooser chooser = new FileChooser();
171 chooser.setTitle("Load cheats");
172 chooser.setInitialFileName("cheat.txt");
173 File saveFile = chooser.showOpenDialog(JaceApplication.getApplication().primaryStage);
174 if (saveFile != null) {
175 cheatEngine.loadCheats(saveFile);
176 }
177 });
178 }
179
180 @FXML
181 void saveCheats(ActionEvent event) {

Callers

nothing calls this directly

Calls 2

whileSuspendedMethod · 0.95
getApplicationMethod · 0.95

Tested by

no test coverage detected