From 9ffbfd19ee05d8797c0fae20de35fccbc1e9e021 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 3 Jun 2026 20:57:36 +0200 Subject: [PATCH] fix: also pin emulators pathPrefix to 8.3.14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ✗ --- frontend/src/pages/Play.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Play.svelte b/frontend/src/pages/Play.svelte index 5602e38..f0ab98f 100644 --- a/frontend/src/pages/Play.svelte +++ b/frontend/src/pages/Play.svelte @@ -70,7 +70,10 @@ try { const url = isSetup ? setupBundleUrl(game) : bundleUrl(game); 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; } catch (e) { error = e.message;