Files
romm/backend/config
HadNutz b1d7d2b57a feat(emulatorjs): expose download cache enable setting (#5737)
* feat(emulatorjs): expose download cache enable setting

* pr-ready: code-review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* pr-ready: simplify

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* pr-ready: review-polish

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(config): move cache_limit under emulatorjs.cache and read config.yml strictly

emulatorjs.cache.limit replaces emulatorjs.cache_limit, which is still read
with a deprecation warning and is rewritten to the new key on the next save.

Every config.yml read now goes through one reader that exits with code 3 when
a parent block is not a dictionary (e.g. `netplay: true`), where get_nested
silently fell back to the default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(emulatorjs): clear every EmulatorJS cache and keep nightly's cache size

The clear-cache dialog now also deletes EmulatorJS-bios (4.2.3) and
EmulatorJS-Cache (nightly), which kept serving downloaded files.

Nightly turns EJS_CacheLimit, a per-file byte cap in 4.2.3, into its total
cache size in MB, so a limit under 1 MiB gave a 0 MB cache. Passing
cacheMaxSizeMB explicitly keeps nightly at its own 4096 MB default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(utils): drop get_nested

The config loader reads config.yml through its own strict reader now, so
get_nested has no callers left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 11:13:18 -05:00
..