()
| 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!"); |
no test coverage detected