Preserve F1 settings when a save fails #2256
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!2256
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2256"
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?
@ThePerfomance on GitHub · 2026-11-29 11:06 UTC · original
ThePerfomance:fix/f1-settings-persistence→main· +122 −8 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCWhat it changes
F1 currently truncates the destination before writing the new settings, treats any read failure as an empty file, and reports a successful reset even if deleting the file failed.
Stage the full contents in a uniquely named sibling temporary file, sync it, and replace the settings file only after that succeeds. An unreadable existing file is preserved. Reset still succeeds when the file is already absent and reports other errors in the menu.
How it was tested
git diff --checkpassed.victory-formats. This PR does not touch that crate, its inputs, or workspace dependencies.Checked for overlap
mainand open PRs touching the menu. #1382 includes overlapping persistence and reset changes as part of the native Graphics menu. #1981 also moves F1 persistence into a shared backend. This PR offers the standalone one-file fix for the existing F1 menu, with regression tests for the failure paths.