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

Method initGameCore

data/src/emulator.js:639–646  ·  view source on GitHub ↗
(js, wasm, thread)

Source from the content-addressed store, hash-verified

637 });
638 }
639 initGameCore(js, wasm, thread) {
640 let script = this.createElement("script");
641 script.src = URL.createObjectURL(new Blob([js], { type: "application/javascript" }));
642 script.addEventListener("load", () => {
643 this.initModule(wasm, thread);
644 });
645 document.body.appendChild(script);
646 }
647 getBaseFileName(force) {
648 //Only once game and core is loaded
649 if (!this.started && !force) return null;

Callers 1

gotCoreMethod · 0.95

Calls 3

createElementMethod · 0.95
initModuleMethod · 0.95
addEventListenerMethod · 0.80

Tested by

no test coverage detected