fix: also pin emulators pathPrefix to 8.3.14
Build & Deploy / build-and-deploy (push) Successful in 40s

js-dos 8.3.14 hardcodes pathPrefix default to 'latest/emulators/'
internally, so pinning the JS file alone still loads the BROKEN
emulators 8.3.8 wlibzip.wasm. Must also pass pathPrefix.

Verified on CDN:
  8.3.14/emulators/ → emulators 8.3.3, wlibzip.wasm 112,732 bytes ✓
  latest/emulators/  → emulators 8.3.8, wlibzip.wasm 113,081 bytes ✗
This commit is contained in:
Hermes Agent
2026-06-03 20:57:36 +02:00
parent 840777d289
commit 9ffbfd19ee
+4 -1
View File
@@ -70,7 +70,10 @@
try { try {
const url = isSetup ? setupBundleUrl(game) : bundleUrl(game); const url = isSetup ? setupBundleUrl(game) : bundleUrl(game);
if (!url || !window.Dos) throw new Error("Failed to resolve game bundle"); if (!url || !window.Dos) throw new Error("Failed to resolve game bundle");
dosCI = await window.Dos(dosContainer, { url }); dosCI = await window.Dos(dosContainer, {
url,
pathPrefix: "https://v8.js-dos.com/8.xx/8.3.14/emulators/",
});
running = true; running = true;
} catch (e) { } catch (e) {
error = e.message; error = e.message;