Config: a path with < > " | ? * is refused at once, naming the setting (#2808) #2859
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!2859
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2859"
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?
@breachato on GitHub · 2026-11-29 18:15 UTC · original
breachato:config-reject-placeholder-brackets→main· +64 −1 · 1 files · 1 commits · open[pr-fix]
Fixes #2808
What it changes
In #2808 a player set
VICTORY_CACHE_DIR=<C:\Users\...\cache>, with the<>of a placeholder copied along.Configaccepted it, and the start failed only later, at the first folder made under the cache:That doesn't say which setting is wrong; the maintainer had to explain it in the issue.
Config::resolvenow checks the cache, data, page-file and game folders, wherever they came from (environment,victory.toml,VICTORY_HOME), for the characters Windows never allows in a path (< > " | ? *). It stops with an error that names the setting, for example:A
\?\or\.\prefix is allowed (its?and.are not counted).:and\are left alone, since they are part of normal Windows paths.How it was tested
cargo test -p victory-core --lib --locked config: 20 passed, including two new tests: placeholder brackets inVICTORY_CACHE_DIRare refused, naming the variable and giving the hint; a?in[paths].game_diris refused without the bracket hint; verbatim prefixes pass.cargo clippy -p victory-core --all-targets --locked -- -D warnings: clean.run.rsgets every cache and data folder throughConfig(cache_subdir,data_subdir), and nothing else readsVICTORY_CACHE_DIRdirectly.cargo testpassed for the crates it touches: yesHow to try it
In PowerShell, then start the game as usual:
maingets as far as making the first folder under the cache and stops withos error 123; this branch stops at once and namesVICTORY_CACHE_DIR. Without a title:cargo test -p victory-core --lib --locked config.Checked for overlap
config.rs.Assisted by Claude.
ff5aff647dto9af2cf72739af2cf7273to8fe1f8c01dView 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.