Commit Graph

177 Commits

Author SHA1 Message Date
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
Georges-Antoine Assi
de63580fcf trunk fmt everything 2026-07-19 20:35:51 -04:00
Georges-Antoine Assi
6e2a77aa93 fix(player): validate each stored core before falling back
Validate the per-game and per-platform cores independently so a stale
or unsupported per-game core falls through to a valid per-platform core
instead of jumping straight to the first supported core.

Generated-By: PostHog Code
Task-Id: 6cc47d8f-2bb8-4424-ba58-e595fe947444
2026-07-06 22:43:05 -04:00
Georges-Antoine Assi
e3605bf950 feat(player): remember emulator core per-game
Persist the selected EmulatorJS core per-game and fall back to the
per-platform default when a game has no saved core. The per-platform
key is still written so it acts as the default for new games on that
platform.

Closes #2042

Generated-By: PostHog Code
Task-Id: 6cc47d8f-2bb8-4424-ba58-e595fe947444
2026-07-06 22:33:14 -04:00
copilot-swe-agent[bot]
a7751c55cd fix(console): hide bezel overlay when bezel asset fails to load
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-06-08 12:17:15 +00:00
copilot-swe-agent[bot]
fd95a29551 fix: invalidate EmulatorJS ROM cache when rom filename changes
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-06-03 19:06:29 +00:00
Georges-Antoine Assi
96ac7ac5e8 only add new cores in nightly 2026-05-30 20:53:52 -04:00
Georges-Antoine Assi
32cdfb1547 Merge pull request #3374 from rommapp/copilot/fix-file-id-issue-api-call
Fix stale disc file ID in localStorage causing 404 on ROM play after rescan
2026-05-14 20:29:07 -04:00
Georges-Antoine Assi
5b02d6b377 run fmt 2026-05-14 15:44:42 -04:00
copilot-swe-agent[bot]
4ee310b0da fix(console): honor DISABLE_EMULATOR_JS in console mode
Agent-Logs-Url: https://github.com/rommapp/romm/sessions/67bb960a-e5ec-4569-bdeb-d8c90028c004

Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-05-14 18:40:25 +00:00
copilot-swe-agent[bot]
d1696cd047 Fix stale disc file_id causing 404 when playing ROMs after rescan
When a ROM is rescanned and its file IDs change, disc IDs stored in
localStorage become stale. This caused file_ids query params with invalid
IDs to be sent to /api/roms/{id}/content/{name}, resulting in 404 errors.

Validate the stored disc ID against the actual ROM files before use. If
stale, clear localStorage and fall back to the first available file.

Agent-Logs-Url: https://github.com/rommapp/romm/sessions/3579d577-13ff-4288-9a9c-909b6f891c9e

Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-05-14 18:38:23 +00:00
Georges-Antoine Assi
8e009dffc0 render covers at their natural aspect ratio and drop the cover-style setting
Covers now use object-fit: contain inside a fixed slot, so each image
keeps its own aspect ratio (letterboxed where needed) instead of being
cropped to the platform's configured ratio. The slot itself still uses
a single default aspect ratio for grid stability, so cards don't reflow
as images load.

With per-platform aspect ratio no longer doing anything visible, remove
the Cover style picker from the platform info drawer and clean up dead
plumbing: galleryViewStore.getAspectRatio no longer reads
platform.aspect_ratio, platformId is dropped from Skeleton / SearchCover
/ MatchRom / showSearchCoverDialog, and the orphaned i18n keys
(cover-style, settings, old-squared-cases, old-horizontal-cases) are
stripped from all platform.json locale files.

Backend aspect_ratio column is left in place; no client sends it anymore.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 11:11:09 -04:00
copilot-swe-agent[bot]
681efc6a46 fix: enable COEP/COOP headers for console play route to fix MSDOS games
Agent-Logs-Url: https://github.com/rommapp/romm/sessions/487d4506-1203-499e-afc4-a45ee1f2438b

Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-04-20 18:08:38 +00:00
Georges-Antoine Assi
a181fe13a5 changes from bot review 2026-04-07 09:04:13 -04:00
Georges-Antoine Assi
e5cb29ae80 Merge branch 'master' into feature/play-session-ingest 2026-04-06 12:42:15 -04:00
Georges-Antoine Assi
ceddf2f9e9 changes from bot review 2026-04-03 11:24:02 -04:00
Georges-Antoine Assi
eecdbb06ec add playtime tracking via emujs 2026-03-22 15:48:56 -04:00
Georges-Antoine Assi
76bdfb4891 changes from self review 2026-03-07 09:36:45 -05:00
Georges-Antoine Assi
f4d9961460 really go all out with typing stuff 2026-02-18 17:41:50 -05:00
Georges-Antoine Assi
5e462435d9 update api client calls 2026-02-18 16:37:48 -05:00
Georges-Antoine Assi
0023e29ef8 remove owned_by_current_user and refactor 2026-02-08 19:58:48 -05:00
Georges-Antoine Assi
3da557c72d load stores dierctly in roms store 2026-02-08 10:05:35 -05:00
Georges-Antoine Assi
354922cf41 correct set platforms in roms fetch 2026-01-15 12:43:35 -05:00
Georges-Antoine Assi
b0cf2e9338 set filter platforms on platforms fetch 2026-01-15 12:10:13 -05:00
Georges-Antoine Assi
964bbf3a7c refactor based on bot review 2026-01-04 21:41:16 -05:00
Georges-Antoine Assi
72517de5ce do the same in console player 2026-01-04 21:34:37 -05:00
Georges-Antoine Assi
17883b3b30 fix type errors 2026-01-02 11:14:09 -05:00
Georges-Antoine Assi
bcd74cccb6 Merge pull request #2794 from rommapp/hide-zero-game-platforms-console-mode
Hide 0-game platforms from console mode homepage
2025-12-22 20:26:49 -05:00
Georges-Antoine Assi
92cfefceeb run trunk fmt 2025-12-21 13:10:48 -05:00
Georges-Antoine Assi
60d9295789 Hide 0-game platforms from console mode homepage 2025-12-21 11:17:31 -05:00
Georges-Antoine Assi
11cfc7ea43 Add config options to disable batch bootup and auto unload in emujs 2025-12-21 10:50:27 -05:00
Georges-Antoine Assi
13ce21d70c chagnes from bot review 2025-12-08 23:30:17 -05:00
Georges-Antoine Assi
27c83e4736 add config entry to enable netplay 2025-12-08 22:58:48 -05:00
Georges-Antoine Assi
ba4ed763a8 run fmt 2025-12-01 20:19:59 -05:00
Tanguy Mazé
040dc9fa56 refactor(i18n): add getBrowserCompatibleLocale utility and fix missing locale in notes
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 01:20:44 +01:00
Tanguy Mazé
12b34bfada feat(i18n): fix French translations and add locale-aware date formatting
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 00:58:58 +01:00
Georges-Antoine Assi
272b00575f actually translate 2025-11-21 12:36:27 -05:00
Georges-Antoine Assi
4b753945d4 run trunk fmt 2025-11-21 11:26:56 -05:00
Pavel Slabý
6018cd616b Update SettingsModal.vue 2025-11-21 11:54:55 +01:00
Pavel Slabý
49d6996f62 Update Play.vue 2025-11-21 11:20:22 +01:00
Pavel Slabý
b91b919a25 Update Play.vue 2025-11-21 11:15:27 +01:00
Pavel Slabý
4732aa61cb Console translate 2025-11-20 15:01:55 +00:00
Pavel Slabý
83a89b7371 Translate console 2025-11-20 14:21:57 +00:00
Georges-Antoine Assi
ba441bcd1b empty alt when no bezel found 2025-11-15 19:37:01 -05:00
Georges-Antoine Assi
3afe2f5fdd fix miximage on gameview 2025-11-02 22:22:53 -05:00
Georges-Antoine Assi
4a6854e374 self code cleanup 2025-10-30 20:50:47 -04:00
Georges-Antoine Assi
7f02b16904 simplify elevation and centralize video playing 2025-10-30 14:18:19 -04:00
Georges-Antoine Assi
9ba378cfe7 fix gamecard transition 2025-10-30 10:57:46 -04:00
Georges-Antoine Assi
de5c83e16e duplicate behaviour to gamecard 2025-10-29 22:45:08 -04:00
Georges-Antoine Assi
2026657502 fix scroll load and data tables 2025-10-28 11:31:32 -04:00