Files
romm/frontend/src/console
Georges-Antoine Assi 5570eece4e Apply config.yaml EmulatorJS defaults on fresh launches and after setting changes
EmulatorJS drops the EJS_defaultOptions passed from config.yaml in two
places. preGetSetting short-circuits to the saved-settings localStorage
object once any setting or control was changed, returning undefined for
keys the user never touched. getCoreSettings, which writes the RetroArch
core options file during boot, returns an empty string when localStorage
is enabled but holds no saved entry yet, so core options such as
mupen64plus-FXAA never reach the core on a fresh launch.

Install a trap on the window.EJS_emulator assignment that patches both
methods and recomputes the constructor-captured values (rewindEnabled,
videoRotation, webgl2Enabled) right after the constructor returns,
before the async core download and boot consume them. Patching in
EJS_onGameStart (where the previous fix ended up after a cleanup) is
too late: by then the GL context exists and retroarch.cfg and the core
options file are already written.

The console player installs the same trap, and the web player now looks
up core options by the resolved core instead of the nullable core prop.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-25 09:05:12 -04:00
..
2025-09-02 00:22:51 -03:00
2026-07-19 20:35:51 -04:00
2025-09-05 23:01:12 -04:00
2026-01-15 12:43:35 -05:00