MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / quickSave

Method quickSave

data/src/GameManager.js:226–239  ·  view source on GitHub ↗
(slot)

Source from the content-addressed store, hash-verified

224 })
225 }
226 quickSave(slot) {
227 if (!slot) slot = 1;
228 let name = slot + "-quick.state";
229 try {
230 this.FS.unlink(name);
231 } catch(e) {}
232 try {
233 let data = this.getState();
234 this.FS.writeFile("/" + name, data);
235 } catch(e) {
236 return false;
237 }
238 return true;
239 }
240 quickLoad(slot) {
241 if (!slot) slot = 1;
242 (async () => {

Callers 2

simulateInputMethod · 0.95
createContextMenuMethod · 0.80

Calls 2

getStateMethod · 0.95
writeFileMethod · 0.80

Tested by

no test coverage detected