config: flag fidelityfx_dir in victory config policy check; fix example comment #2197
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!2197
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2197"
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?
@romeawayfromhome-rgb on GitHub · 2026-11-25 07:26 UTC · original
romeawayfromhome-rgb:fix/config-policy-flag→main· +4 −1 · 2 files · 3 commits · openThe
victory.example.tomlcomment claimed every path inside the repository is refused, but onlycache_dir/data_dirare refused (ensure_outside_repo);game_dir/test_titlesonly printPOLICY VIOLATIONinvictory config, andfidelityfx_dirwas not checked at all. This addsfidelityfx_dirto that policy check and corrects the example comment.claiming: Fix victory.example.toml comment — only derived data paths are refused inside the repo, and flag fidelityfx_dir in
victory configpolicy checkNote: the Rust change is a single display-only line, not compiled locally (no Rust toolchain in this environment); it relies on CI.
@Dathinel on GitHub · 2026-11-25 07:42 UTC · original
Built the Windows CLI at
7b718c9and its parentcd156f1withcargo build --frozen -p victory --bin victory. I ranvictory configwith a temporary TOML file, external cache/data paths, and only[paths].fidelityfx_dirvaried.All eight invocations exited 0. This verifies the display-only change, including detection before the directory exists. AI-assisted; synthetic paths only.
@cloph-dsp on GitHub · 2026-11-25 10:29 UTC · original
Independent local verification (Windows, Rust 1.100.0/MSVC, head
7b718c9, no game data):cargo build -p victory --lockedexit 0;cargo test -p victory --lockedexit 0, 2 tests passed. I did not exercise the VICTORY_CONFIG fidelityfx_dir policy warning with a temporary config. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only build/tests). No game data, assets or extracted content used.@Marvisak on GitHub · 2026-11-25 12:45 UTC · original
Automated triage for the maintainers.
Merge candidate.
victory config(show_configinapps/victory/src/main.rs) now also runsensure_outside_repoonfidelityfx_dir, like the other configured paths. A FidelityFX folder pointed inside the checkout is flagged the same way. The example config's header now says what is actually enforced: derived data is refused inside the repository, andvictory configflags any path that points inside it. Dathinel's run above checks the warning for unset, external, existing-inside and missing-inside paths.CI: no check runs on this head. The branch merges cleanly.
Generated by Claude Code
@fuzeofficlal on GitHub · 2026-11-26 01:13 UTC · original
Code review and Windows 11 verification at head
7b718c9cec17merged cleanly ontomain(63bcca43c6a0):apps/victory/src/main.rs:236-255,victory.example.toml:1-5):cfg.fidelityfx_dir.iter()intocheck_policy(cfg)validates optionalfidelityfx_dirthroughensure_outside_repowithout false positives when unset, and the example comment now accurately distinguishesConfig::load()runtime checks fromvictory configpolicy checks.fidelityfx_dir-inside-repo assertion alongsideconfig_check_fails_a_path_inside_the_repositorywould lock in the new check.cargo xtask policy:191 files ok;cargo clippy --locked -p victory --tests -- -D warnings: 0 warningscargo test --locked -p victory: 18/18 passed (14 unit + 4 integration).LGTM.
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.