preload, shaders and translate find the title beside the program, as play does #4543
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!4543
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4542"
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?
@DoubleD17 on GitHub · 2026-11-30 22:10 UTC · original
DoubleD17:fix/standalone-commands-find-title→main· +44 −7 · 2 files · 1 commits · openWhat it changes
victory playneeds no configuration: with no executable named, it starts thegame_scarlett_master.exebeside the program, or in the current folder. That is the install the README describes.The commands that read the title folder don't do the same.
victory preload(andshaders,translate,census) with no path and novictory.tomlstop with:This happens even when the title sits right beside
victory.exe, and even thoughpreload --helpsays the default is "the configured game folder". We hit it runningvictory preload --allby hand.This change:
default_paths: after the paths given and the configured ones, it falls back to the folder of the titleplaywould start.play::prepareintotitle_besideinmain.rs, andplayuses it, so both find the same title.main.rsbuilds on every platform;playis Windows-only.preload --help: thepathstext names the new default.Nothing changes when paths are given or configured.
How it was tested
game_scarlett_master.exe, run there with no path and novictory.toml(VICTORY_KEEP_OLD_SHADERS=1so the shared cache is left alone):e1251c31):victory shadersstops withError: no paths given and none configured (see victory.example.toml).victory shadersreads that folder (0 shaders in the cache, 0 do not translate, 0 s, the test file being empty).default_pathsreturns the given paths first, as before.the_title_beside_the_program_names_its_folder, covers the lookup:None;game_scarlett_master.exein the folder, then that folder as an absolute path.cargo test -p victory --locked: 92 passed, the new test among them.cargo clippy -p victory --all-targets --locked --no-deps -- -D warnings: clean. Without--no-depsit stops first on main's ownrangedincrates/victory-gpu/src/shadow.rs:7197.Checked for overlap
default_paths, "no paths given and none configured", standalone preload). Nothing open changes how the standalone commands find the title.AI Assisted
c6ccb88ab8to163bc504eb@andrewpozdnakov7-jpg on GitHub · 2026-12-01 10:59 UTC · original
title_foldermakes the selected executable path absolute, whileplayalso resolves filesystem links. A file link beside the launcher can therefore makepreloadscan the link's folder whileplayruns from the actual installation. Rust path handling00413331a9c274100fa17df3bc31fc67b8da14a4 resolves the selected file before taking its parent and reuses the Windows path normalization from
play. If canonicalization fails it uses the same absolute-path fallback as your current helper. Review commitOn Windows 10/MSVC, the exact two versions returned the same normal installation path. A synthetic directory junction returned its alias with
163bc504and the actual installation with the follow-up. The host returned Win32 error 1314 when the fixture tried to create a file symbolic link, so the Windows verification covers the directory junction. Staged policy passed for both source files.Please preserve the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding it in.AI-assisted with OpenAI Codex.
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.