Validate GameInput replay tapes #3444
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3444
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3444"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@LucaruluDev on GitHub · 2026-11-29 23:25 UTC · original
LucaruluDev:fix/padtape-replay-validation→main· +302 −51 · 1 files · 3 commits · openWhat it changes
Validate the entire
VICTORY_INPUT_REPLAYtape before applying any pad state. Skip blank lines. Accept complete hexadecimal pad states and explicit disconnect rows for slots 0–3, plus standalonewaitdirectives. Wrong field counts, invalid hexadecimal, out-of-range slots, unreadable files and tapes with no steps reject the replay. The diagnostic reports the path and reason once, with the first invalid line number for a format error.When replay is rejected, live input remains available and recording is disabled for that run. This protects the rejected tape when
VICTORY_INPUT_RECORDpoints to it and also leaves a separate recording destination untouched. Recording still works when replay is unset. Valid recordings retain their existing format andwaitholds the last readings until<tape>.goexists, then rebases subsequent timestamps.For unattended benchmarks, check for
replayed from a file: N stepswith the expected step count. A successful process exit can also come from live-input fallback. Replay covers pad state. Separately configured live keyboard and mouse routes can still contribute input.How it was tested
mainsilently skips malformed rows, treats an incomplete pad state as a disconnect, accepts an empty tape and can fall through to recording after a read error. These baseline behaviours were verified by inspecting the parser and initialisation path.wait/.go.cargo testpassed for the crates it touches: the focused GameInput suite passed. The full crate and workspace suites were not run on this merge.Published head
80b8bbcae0cd4836826149200b625d1201cc73ff. Tested in the clean local merged94860677a0328e41e0d9d3cda3d1f14f2fffef8withmainat5fabb46eaf6ed8771321787f8871051abde69b9b:cargo test --locked -j 2 -p victory-hle --lib modules::gameinput:: -- --test-threads=2cargo clippy --locked -j 1 -p victory-hle --all-targets --no-deps -- -D warningscargo clippy --workspace --all-targets --locked -j 2 -- -D warningsmainbase.cargo clippy --workspace --all-targets --all-features --locked -j 2 -- -D warningsmainbase.The PR's recorded check predates #4297 and stopped at the pre-existing unused
victory-loader::crash::unwind_copy, since removed upstream. On the current base, the local merge reproduces the same five findings asmainafter #4635: twotoo_many_argumentsinhost/font.rs, onemanual_is_multiple_ofinhost/menu.rs, and twocollapsible_ifinhost/panel.rs. Both open fixes address all five. PR check · Current main check · #4680 · #4708Checked for overlap
OpenAI Codex assisted with implementation, regression tests and documentation. Claude Code contributed an independent audit and review.
@LucaruluDev on GitHub · 2026-11-30 08:38 UTC · original
I reproduced the exact CI Clippy command on both current upstream main (
41adb551) and this run's merge commit (634f5de3). Both fail because-D warningspromotes the existing unusedunwind_copyfunction invictory-loader/src/crash.rs:804to an error. That file is identical in both trees.A separate Clippy run scoped to
victory-hlecompleted on both trees and reported the same existing warnings outside the padtape diff. This PR remains at80b8bbca. The diagnostics and test steps in this CI run were skipped after Clippy failed.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.