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

Method withComputer

src/main/java/jace/Emulator.java:88–96  ·  view source on GitHub ↗
(Consumer<Apple2e> c)

Source from the content-addressed store, hash-verified

86 }
87
88 public static void withComputer(Consumer<Apple2e> c) {
89 Apple2e computer = getComputer();
90 if (computer != null) {
91 c.accept(computer);
92 } else {
93 System.err.println("No computer available!");
94 Thread.dumpStack();
95 }
96 }
97
98 public static <T> T withComputer(Function<Apple2e, T> f, T defaultValue) {
99 Apple2e computer = getComputer();

Callers 15

initializeMethod · 0.95
reconnectKeyboardMethod · 0.95
connectControlsMethod · 0.95
setSpeedMethod · 0.95
updateStatusMethod · 0.95
enableTraceMethod · 0.95
registerDebuggerMethod · 0.95
saveScreenshotRawMethod · 0.95
whileSuspendedMethod · 0.95
withMemoryMethod · 0.95
withVideoMethod · 0.95

Calls 3

getComputerMethod · 0.95
acceptMethod · 0.80
applyMethod · 0.80

Tested by

no test coverage detected