Portable folder: portable.txt beside victory.exe keeps everything beside it #3908
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!3908
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3908"
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?
@Trillazill on GitHub · 2026-11-30 11:08 UTC · original
Trillazill:feat/portable-home→main· +58 −2 · 3 files · 1 commits · openWhat this changes
#3875 asks for settings, saves, caches and logs to live in the game's folder, so it can be archived whole.
VICTORY_HOMEalready moves all of them:victory_core::config::home_override, the launcher'shome(), and the F1 menu's settings file all follow it. But it has to be set in the environment first.portable.txtbesidevictory.exe: the first thingmaindoes is setVICTORY_HOMEtovictory-databeside the exe. It does this only whenVICTORY_HOMEisn't already set (a folder set by hand wins). Everything that keeps files reads it from there, and the processes a start begins (the preload, the F1 restart) inherit it.VICTORY_HOME: the stats panel's first-start mark (advisor-shown\<build>) always went to%LOCALAPPDATA%\victory. It now followsVICTORY_HOMElike the rest.VICTORY_HOMEone. Existing files are not moved, and a build inside a source checkout is refused by the asset policy (see below).Without the marker nothing changes.
Tests
tests::a_marker_beside_the_exe_keeps_everything_beside_it. It covers the marker,VICTORY_HOMEset but empty,VICTORY_HOMEset by hand (wins), and no marker.cargo test -p victory: 84 pass (81 + 1 + 2).cargo test -p victory-gpu --lib -- host::panel: 9 pass.-p victory -p victory-gpu --all-targets): nothing in the lines this change adds or touches.panel.rs:149is flagged on41adb551too.cargo xtask policy --staged: ok (3 files).victory.exe configfrom a release build:%LOCALAPPDATA%\victory\cacheand\data, as before;portable.txt:<exe folder>\victory-data\cacheand\data;VICTORY_HOMEset: theVICTORY_HOMEfolders.target\release, inside the checkout, so the asset policy refused the portable folders ("inside the VIctory source tree"). That is as it should be, and it's why the README names a release folder.No game data, logs or other files from the title are in this change.
🤖 Generated with Claude Code
github-bot referenced this pull request2026-11-30 16:51:58 +00:00
Portable folder: portable.txt beside victory.exe keeps everything beside it (#3875)to Portable folder: portable.txt beside victory.exe keeps everything beside it3b2a99555bto70dac620c7@Trillazill on GitHub · 2026-12-01 06:21 UTC · original
Rebased onto main
5fabb46e. Conflict inpanel.rs: a doc comment only. Tests on the rebased branch:cargo test -p victory --bin victory -- tests::a_marker_beside_the_exe_keeps_everything_beside_itpasses;cargo clippy -p victory-gpu --lib --testsno errors.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.