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

Method downloadFiles

data/src/emulator.js:916–932  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

914 })
915 }
916 downloadFiles() {
917 (async () => {
918 this.gameManager = new window.EJS_GameManager(this.Module, this);
919 await this.gameManager.loadExternalFiles();
920 await this.gameManager.mountFileSystems();
921 this.callEvent("saveDatabaseLoaded", this.gameManager.FS);
922 if (this.getCore() === "ppsspp") {
923 await this.gameManager.loadPpssppAssets();
924 }
925 await this.downloadRom();
926 await this.downloadBios();
927 await this.downloadStartState();
928 await this.downloadGameParent();
929 await this.downloadGamePatch();
930 this.startGame();
931 })();
932 }
933 initModule(wasmData, threadData) {
934 if (typeof window.EJS_Runtime !== "function") {
935 console.warn("EJS_Runtime is not defined!");

Callers 1

initModuleMethod · 0.95

Calls 11

callEventMethod · 0.95
getCoreMethod · 0.95
downloadRomMethod · 0.95
downloadBiosMethod · 0.95
downloadStartStateMethod · 0.95
downloadGameParentMethod · 0.95
downloadGamePatchMethod · 0.95
startGameMethod · 0.95
loadExternalFilesMethod · 0.80
mountFileSystemsMethod · 0.80
loadPpssppAssetsMethod · 0.80

Tested by

no test coverage detected