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

Method invokeReset

src/main/java/jace/core/Computer.java:179–191  ·  view source on GitHub ↗

If the user wants a full reset, use the coldStart method. This ensures a more consistent state of the machine. Some games make bad assumptions about the initial state of the machine and that fails to work if the machine is not reset to a known state first.

()

Source from the content-addressed store, hash-verified

177 * and that fails to work if the machine is not reset to a known state first.
178 */
179 @InvokableAction(
180 name = "Reset",
181 description = "Process user-initatiated reboot (ctrl+apple+reset)",
182 category = "general",
183 alternatives = "reboot;reset;three-finger-salute;restart",
184 defaultKeyMapping = {"Ctrl+Ignore Alt+Ignore Meta+Backspace", "Ctrl+Ignore Alt+Ignore Meta+Delete"})
185 public void invokeReset() {
186 if (SoftSwitches.PDL0.isOn()) {
187 coldStart();
188 } else {
189 warmStart();
190 }
191 }
192
193 /**
194 * In a cold start, memory is reset (either two bytes per page as per Sather 4-15) or full-wipe

Callers 1

initMethod · 0.80

Calls 3

coldStartMethod · 0.95
warmStartMethod · 0.95
isOnMethod · 0.45

Tested by

no test coverage detected