From 79a0af86adeb40d4224b22f248fbc98c1bd91ebe Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 3 Jun 2026 19:00:49 +0200 Subject: [PATCH] fix: remove .jsdos/ from bundles to avoid js-dos bundleUpdateConfig js-dos v8.3.8 (loaded from CDN) calls bundleUpdateConfig to re-add .jsdos/jsdos.json into the downloaded bundle. This fails on our bundles because the WASM libzip _zipfile_add returns non-zero. Since we can't fix js-dos's internal WASM code, we remove the .jsdos/ directory from bundles entirely. This means bundleConfig() returns null, no editor config is set, and bundleUpdateConfig is never called. Downside: games start with js-dos's default dosbox.conf (no custom CD mounts or autoexec). The game files are on C:\ and the user can type the executable name. Added autoStart + countDownStart=0 to auto-skip the config UI. The config API endpoint (/api/games/{id}/config) is kept for future use where we can inject config after the emulator starts. --- frontend/src/pages/Play.svelte | 26 ++----------- .../java/com/dostalgia/UploadResource.java | 37 +------------------ 2 files changed, 5 insertions(+), 58 deletions(-) diff --git a/frontend/src/pages/Play.svelte b/frontend/src/pages/Play.svelte index 549bd0a..41ce335 100644 --- a/frontend/src/pages/Play.svelte +++ b/frontend/src/pages/Play.svelte @@ -1,5 +1,5 @@