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

Method launchScreen

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

Source from the content-addressed store, hash-verified

236 this.DEVICE.first.delegate("onKeyUp", key);
237 }
238 launchScreen() {
239 if (this.screenOnce)
240 return;
241 if (this.libraryPath) {
242 system.copyFile(this.libraryPath, this.localLibraryPath);
243 if (this.archivePath) {
244 system.copyFile(this.archivePath, this.localArchivePath);
245 if (this.ffiPath) {
246 system.copyFile(this.ffiPath, this.localFFIPath);
247 this.SCREEN.launch(this.localLibraryPath, this.localArchivePath, this.localFFIPath);
248 }
249 else
250 this.SCREEN.launch(this.localLibraryPath, this.localArchivePath);
251 }
252 else
253 this.SCREEN.launch(this.localLibraryPath);
254 this.DEVICE.first.delegate("onLaunch");
255 }
256 application.updateMenus();
257 application.distribute("onInfoChanged");
258 }
259 quitScreen() {
260 if (this.screenOnce)
261 return;

Callers 12

onAppearanceChangedMethod · 0.95
onColorsChangedMethod · 0.95
onAbortMethod · 0.95
onOpenFileCallbackMethod · 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 2

delegateMethod · 0.80
distributeMethod · 0.80

Tested by

no test coverage detected