mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
Wire usePlaySession into the v2 EmulatorJS view so a session is recorded on any exit path (in-emulator Exit/Save & Quit, back nav, or route change), starting when the game goes live and flushing on unmount. flush() is idempotent so overlapping exit paths can't double-submit. Remove the play-session ingest from the shared v1 Player component so there is a single source of truth and no double-recording. immediateExit now only navigates back to the game details view. Note: Player.vue is also mounted by the v1 EmulatorJS view, which no longer records sessions as a result; acceptable while v1 is frozen and slated for removal. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>