MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / quitScreen

Method quitScreen

tools/mcsim/main.js:259–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257 application.distribute("onInfoChanged");
258 }
259 quitScreen() {
260 if (this.screenOnce)
261 return;
262 if (this.SCREEN)
263 this.SCREEN.quit();
264 if (system.fileExists(this.localFFIPath))
265 system.deleteFile(this.localFFIPath);
266 if (system.fileExists(this.localArchivePath))
267 system.deleteFile(this.localArchivePath);
268 if (system.fileExists(this.localLibraryPath))
269 system.deleteFile(this.localLibraryPath);
270 }
271 reloadDevices(application, flag) {
272 let devices = this.devices = [];
273 let index = this.deviceIndex;

Callers 12

onColorsChangedMethod · 0.95
onAbortMethod · 0.95
onOpenFileCallbackMethod · 0.95
onQuitMethod · 0.95
onRotateMethod · 0.95
onSelectDeviceMethod · 0.95
doCloseAppMethod · 0.95
doCloseModMethod · 0.95
doOpenFileCallbackMethod · 0.95
doReloadFileMethod · 0.95
doReloadSimulatorsMethod · 0.95
doSelectRotationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected