fix(hle): account for save replacements before clamping quota #1110
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1110
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1110"
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?
@divyeshganta on GitHub · 2026-11-24 15:48 UTC · original
divyeshganta:fix/save-quota-replacements→main· +23 −1 · 1 files · 1 commits · openRelated to #923. Quota checks now account for replaced save data before clamping the remaining quota, so replacements cannot hide an existing quota excess. Adds regression coverage for quota boundaries, deletion, and disk-space errors. Patch by DocBlack89 (
d2ce712926).@Zipettte on GitHub · 2026-11-24 18:01 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
d2ce712:cargo test -p victory-hlepasses, 96 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 01:19 UTC · original
Automated triage for the maintainers.
Needs work.
no_roomincrates/victory-hle/src/modules/xgamesave.rschanges fromwritten > QUOTA - used (clamped) + replacedtowritten > QUOTA - (used - replaced) (clamped). The two agree wheneverused <= QUOTA. They differ only when a provider is already over quota. The update's own check keeps an emulated save from getting there, so the case only arises from data placed there some other way, for example an old version left behind after a crash (submitremoves it after the commit).In that case the new rule returns
QUOTA_EXCEEDEDfor every update that does not shrink the save. The title would then fail to save where it succeeds today. That changes a runtime return value, and the PR gives no evidence for it. What would move this forward:used > QUOTAarises and the current behaviour causes a problem.The new test checks the new arithmetic, not the console's behaviour. The PR also has almost no description. Please state the problem it fixes rather than pointing to #923.
CI: no check runs on the head commit.
Generated by Claude Code
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.