Preserve trailing movie bytes when replacing GFx shapes #4992
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!4992
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4991"
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?
@RanoGames on GitHub · 2026-12-01 16:46 UTC · original
RanoGames:fix/gfx-preserve-movie-tail→main· +10 −5 · 1 files · 1 commits · openWhat it changes
Movie::replace_shapesrebuilds a GFx movie through its first End tag. When the declared file length includes bytes after that tag, even an empty replacement list loses those bytes. Preserve the suffix verbatim and include it when recalculating the length after a shape changes size.How it was tested
5fabb46e.7d994c81, the no-op returns the original bytes. Replacing a shape with a larger one preserves the suffix and writes the expected new length.cargo test --locked -p victory-formatspassed (85 tests, 7 ignored). The 18 GFx unit tests also passed separately. Game playback was outside the scope of this test.Checked for overlap
replace_shapes, trailing bytes and the GFx End tag. #2798 also touches the GFx parser for PlayStation prompts. It handles shape recognition.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.