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.
()
| 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 |