* Hide the game Achievements tab when the ROM has no achievements
The v2 game page listed an Achievements tab with a 0/0 badge on every
ROM, including ones with no RetroAchievements match and RA games without
an achievement set. Offer the tab only when the ROM has achievements.
A ?tab=achievements the ROM has no tab for now opens the overview. The
query stays in the URL, so stepping on with prev/next to a ROM that has
achievements opens its tab again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QdE1MDoDitrZZgZ7PQ3s1Z
* Type the achievement fixture, cover stepping between ROMs
Build the test achievement as a complete RAGameRomAchievement instead
of casting a partial object, add a test that ?tab=achievements reopens
the Achievements panel once the route moves on to a ROM with a set, and
drop a comment that restated the length check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QdE1MDoDitrZZgZ7PQ3s1Z
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Match RetroAchievements by RA hash only, never by Hasheous' game ID
Hasheous links an RA game to a whole Hasheous game record, so every dump
grouped under it (other revisions, regions, bad dumps) got that RA ID and
its achievements, even when RA doesn't list the dump's hash as compatible.
It also bypassed RomM's own RA hash lookup and reached the priority merge
when RA was deselected or ranked below Hasheous.
Stop reading the RetroAchievements ID from the Hasheous lookup, drop the
unused RA proxy fetch (its response was discarded), and have fetch_ra_rom
always go through RA's hash list. Existing wrong matches clear on a
Complete rescan.
Fixes#4959
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QdE1MDoDitrZZgZ7PQ3s1Z
* pr-ready step 2 (code-review): cover stale and deselected-RA matches, fix stale copy
Parametrize the Banjo-Kazooie regression test over RA selected and
deselected, starting from a stale Hasheous ra_id, so it pins both the
Complete-rescan clear and the priority-merge leak. Move the RA comment
onto the hash-lookup branch, drop a merge get_igdb_game already does,
and stop the Hasheous provider description claiming it supplies
RetroAchievements IDs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QdE1MDoDitrZZgZ7PQ3s1Z
* pr-ready step 3 (simplify): reuse scan stubs in the Hasheous RA test
Build the Banjo-Kazooie platform, ROM and top-level file with the shared
add_n64_platform/add_rom/_top_level_rom_file helpers, state the expected
RA lookup as a parameter instead of branching on it, and drop a comment
that described the removed Hasheous path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QdE1MDoDitrZZgZ7PQ3s1Z
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
typescript-eslint moves to 8.70.1, the first release in the npm age
window whose peer range (<6.1.0) admits TypeScript 6. TypeScript 6
enables noUncheckedSideEffectImports by default, so the vuetify/styles
CSS import gets an ambient module declaration.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Select/autocomplete/combobox item, selection and chip slots now pass the
raw item as `item`, so drop the `.raw`/`.title` unwrapping. VDateInput
graduated out of labs, and theme colors are typed as Color.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Repair comments where the em-dash sweep left broken pairs, colon plus
conjunction joins, and misaligned column lists. Block filesystem: in the
pairing callback check, route both Pair views through the shared
errorMessage() helper, and drop the SfcNode comments field the removed
rule used.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
isCustomScheme only rejected http and https, so a javascript: or data:
callback passed the check and ran in the RomM origin with the freshly
exchanged token. Share one check between the v1 and v2 Pair views and
block javascript:, data:, vbscript:, blob: and file: too (CodeQL
js/xss and js/client-side-unvalidated-url-redirection).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Replace the color literals in AuthLayout and BarcodeScannerDialog with
equivalent color-mix() over named colors, and apply the vue attribute
order and v-slot shorthand fixes.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The mame2003 core bundled with EmulatorJS 4.2.x crashes with
"RuntimeError: unreachable" on many games (EmulatorJS#1030), while
mame2003_plus runs them. A core chosen on the play screen or set in
config.yml default_cores still wins.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Two syncPendingAssets tests expected UTC in the state and archived save
names, but sessionStateName formats the capture in local time on purpose
(b6c03e79e, #4726). They passed only on UTC machines like CI. The suite
now stubs TZ to Asia/Kolkata (+05:30) and expects that local time, so a
switch to UTC formatting fails the tests on any machine.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
EmulatorJS netplay captures host audio once, from OpenAL nodes
(Module.AL) or gameManager.audioNode. Nightly cores, which RomM loads
whenever netplay is enabled, play through RetroArch's rwebaudio driver
instead, connecting each buffer straight to AudioContext.destination,
so the capture finds nothing and guests get video with no sound.
Before the core boots, tee every connection to a context's destination
into a MediaStreamDestination (through a gain carrying netplay's boost
factor), and point the netplay instance's _captureHostAudio at that
stream. It falls back to the stock capture if nothing has played yet.
Fixes#3891
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
EmulatorJS 4.2.3 indexes GamepadHandler's compact pad list with the
browser's gamepad index in its "connected" and input listeners. Chrome
and Brave can leave slot 0 empty and put a lone pad at index 1, so the
lookup reads undefined.id, the exception escapes the polling loop, and
no gamepad input is ever registered.
Upstream fixed this in EmulatorJS/EmulatorJS@29c79a12, which is only on
main. Until a release carries it, the EJS_emulator trap wraps those four
listeners to translate the browser index into the list position first.
Builds that have getGamepadSelectionValue (the nightly CDN build used
for netplay) are left alone.
Fixes#3710
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Safari crashes in its fullscreen teardown when the content process is
swapped while the page is still fullscreen. Leaving the player reloads or
replaces the document to drop cross-origin isolation, which swaps the
process, so a Quit from fullscreen took the whole browser down.
Exit fullscreen, and wait for it (capped at one second), before the v2
document replace, the EmulatorJS player's route leave, and the console
player's route leave.
Fixes#3726
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
startGame builds the disks menu before the settings menu, and building it
re-selects the current disk through menuOptionChanged. On 4.2.3 that writes
to allSettings before it exists, so any game whose core reports more than
one disk (PUAE m3u playlists, DOSBox Pure with several images) fails with
"Cannot set properties of undefined (setting 'disk')". Past that, PUAE
traps in setCurrentDisk that early.
The instance's menuOptionChanged now ignores "disk" until the game has
started. The skipped call only re-selects the disk the core already has,
so disk swaps from the menu once running are unaffected, and it is a no-op
on nightly builds that already initialise allSettings.
Upstream: EmulatorJS/EmulatorJS#1260
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Addresses Greptile review: a keyboard or pad user who interrupted the smooth
scroll kept a pending handoff, so a later return to the top pulled focus to
the first gallery control. A scrollend short of the top, or focus moving
elsewhere, now cancels it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The button sat a full row padding left of the letter strip, floating in the
middle of the gutter. It now rests just inside the strip column, and falls
back to the cards' right edge when no strip renders.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>