From 7e59f784d9954adeb095ee104bac51d8e11089a4 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Wed, 17 Dec 2025 16:43:55 +1100 Subject: [PATCH] Minor updates --- data/src/GameManager.js | 2 +- data/src/emulator.js | 4 ++-- jsconfig.json | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 jsconfig.json diff --git a/data/src/GameManager.js b/data/src/GameManager.js index de9ce77..c9d5934 100644 --- a/data/src/GameManager.js +++ b/data/src/GameManager.js @@ -347,7 +347,7 @@ IF EXIST AUTORUN.BAT AUTORUN.BAT loadPpssppAssets() { return new Promise(async (resolve, reject) => { try { - const cacheItem = await this.EJS.downloader.downloadFile("data/cores/ppsspp-assets.zip", this.EJS.downloadType.support.name, "GET", {}, null, null, null, 30000, "arraybuffer", false, this.EJS.downloadType.support.dontCache); + const cacheItem = await this.EJS.downloader.downloadFile("data/cores/ppsspp-assets.zip", this.EJS.downloadType.core.name, "GET", {}, null, null, null, 30000, "arraybuffer", false, this.EJS.downloadType.core.dontCache); console.log(cacheItem); diff --git a/data/src/emulator.js b/data/src/emulator.js index 8bd4cf7..fb323f6 100644 --- a/data/src/emulator.js +++ b/data/src/emulator.js @@ -49,7 +49,7 @@ class EmulatorJS { "bios": { "name": "BIOS", "dontCache": false }, "parent": { "name": "Parent", "dontCache": false }, "patch": { "name": "Patch", "dontCache": false }, - "reports": { "name": "Reports", "dontCache": false }, + "reports": { "name": "Reports", "dontCache": true }, "states": { "name": "States", "dontCache": true }, "support": { "name": "Support", "dontCache": true }, "unknown": { "name": "Unknown", "dontCache": true } @@ -770,7 +770,7 @@ class EmulatorJS { rep = rep.data; } if (!rep.buildStart) { - console.warn("Could not fetch core report JSON! Core caching will be disabled!"); + console.warn("Could not fetch core report JSON at " + reportUrl + "! Core caching will be disabled!"); rep.buildStart = Math.random() * 100; } if (this.webgl2Enabled === null) { diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..94d1cce --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "module": "CommonJS", + "target": "ES2022" + } +} \ No newline at end of file