XGameSave: five fixes that apply cleanly to main #461
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!461
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-461"
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?
@zocram4cc on GitHub · 2026-11-27 12:37 UTC · original
zocram4cc:up/pr-fixes-saves→main· +166 −14 · 1 files · 5 commits · openFive XGameSave fixes cherry-picked from a third-party Proton/RADV port (zocram4cc/victory-linux-perf,
main) onto126acb35. They apply cleanly; original authors and commit messages kept.What they are:
8f0effb5EatCodeSleep2 — validate the blob count a save reports before reading itd6fc4dd1quaternion — refuse a second write/delete of one blob in an update (the console allows one change per blob; the last one used to win silently)85965ecbDocBlack89 — keep existing quota excess when replacing blobs (AI-assisted, says its own message)6d3e393aDuff — a failedXGameSaveCreateContainer/CreateUpdate/InitializeProviderResultnow nulls the handle, as the GDK documents (before: the title closed whatever was on its stack)77f421c5towiice — abort the legacy container migration if any blob read failsProvenance: curated from the RYUKI-7900XT / LibsMQG hle-d3d12-7900xtx fork line and contributor PRs; none of the five is in
mainor in any open PR I could find (checked the open list, incl. the Marvisak storage-safety PR, against each commit).Testing — honest: applies cleanly to
maincommit by commit; NOT compiled or run by the submitter (Linux, no Windows target, no game runs here), so CI is the gate. No environment variables, no default changes.AI-assisted selection/verification (cherry-pick dry-run, attribution, redundancy check); all code is the original authors'.
XGameSaveCreateContainer, XGameSaveCreateUpdate and XGameSaveInitializeProviderResult left the title's handle untouched when they failed. The GDK documents those handles as null on failure, and its own sample closes them on that basis ("if (containerContext) XGameSaveCloseContainer(...)" on a variable it never initialized), so a failed call made the title close whatever was on its stack: a heap corruption far from the failure that caused it. Each of the three now nulls the handle before anything can fail.@GiovanniFadanelli on GitHub · 2026-11-27 14:24 UTC · original
Superseded by #470: the same five commits, built and tested on Windows (each test red-first). Results are in that PR.
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.