Skip to content

feat: record and verify input replays - #10

Merged
mstan merged 1 commit into
mainfrom
feat/replay-routes
Nov 7, 2026
Merged

mstan merged 1 commit into
mainfrom
feat/replay-routes

Conversation

@Alexbeav

@Alexbeav Alexbeav commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Adds shared input recording and fresh-process verification for headless and linked core sessions. Records the inputs delivered to the core, clocks, initial saves and exact component/configuration identities. Each field checks available state, CPU pictures and audio; malformed or mismatched movies refuse with a machine-readable verdict.

Link 2.5 adds anchored start/stop recording and authoritative recording/playback status for the frontend. Mid-game recording saves and restores an anchor before accepting inputs. Playback uses private save memory and supports neutral-armed live-input takeover without resetting the core. Boot movies remain readable.

Validation: all 38 Runtime tests pass within the combined 42-test frontend/runtime headless run. New coverage includes anchored recording, selected-replay process restart, existing-file protection, input authority, completion, takeover, identity and checkpoint failures, and interrupted recording recovery. A real Smash gameplay anchor recorded 200 fields and matched every state/picture/audio checkpoint in fresh headless and linked processes. Takeover at field 40 continued to 250 with zero faults.

Core limitation: the older shipped Smash core fails anchored replay; the tested core includes the current file-state fixes (source 6b10cf4), with Fast CPU, HLE graphics/audio, software 1x and async off. No checkpoints were weakened. GPU presentation, physical controllers and audio-device output were not tested. The owner accepted the companion frontend's revised page and card layout. The GL picture test was excluded to keep validation headless.

Companion frontend: RetroPortingToolKit/Retro-Launcher#45 adds the F7 replay browser, F11 recording and REC indicator.

@Alexbeav
Alexbeav marked this pull request as ready for review November 4, 2026 09:51
@mstan
mstan merged commit 5f591f8 into main Nov 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants