Run: find title DLLs, the manifest and G: in a separated exe/dump layout #3350
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!3350
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3350"
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?
@oni-swr on GitHub · 2026-11-26 19:40 UTC · original
oni-swr:fix/separated-layout-title-dlls-3336→main· +261 −30 · 9 files · 1 commits · openFixes #3336 (resolution 1, the search order). Task: #3336 on #1633.
A dump whose executable is in another folder than its data got TitleID 0, no
G:and unbound imports, becauserunlooked for the title's DLLs,MicrosoftGame.configand the package only beside the executable.load_title_dlls/load_title_dlltake the title folders in search order (&[&Path]); a newfind_title_dllpicks the first folder that has the file.runsearches the executable's folder, thengame_dir(once if they are the same folder). The same DLL in both comes from the executable's folder.MicrosoftGame.configis read from beside the executable, else fromgame_dir;G:is mounted where it is found. With one folder, behaviour is unchanged. The startup-archive check and the missing-DLL message use the same folders.Tests (synthetic temp dirs, no game files, no GPU):
find_title_dllorder;load_title_dllfinds a DLL in the second folder and prefers the first (title_dlls.rs);TitleLayoutfor one folder, a separated one, and manifest precedence (run.rs). With the old single-folder behaviour emulated, the loader test and the separated-layout test fail; they pass with the fix.Checked:
cargo test -p victory-loader -p victory,cargo clippy -p victory-loader -p victory --all-targets -- -D warnings,cargo xtask policy.cargo clippy --workspace --all-targets -D warningsstops on undocumented-unsafe errors invictory-gputest code that this PR does not touch. Not run with a title or a GPU.AI-assisted: Claude Code (Claude Sonnet 5.5).
🤖 Generated with Claude Code
@Dukestar69 on GitHub · 2026-11-26 19:48 UTC · original · approved these changes
LGTM — verified on Windows against
origin/main(63bcca4).cargo test -p victory-loader -p victory -- --test-threads=1: all passed (17victoryunit + 4 integration, 36victory-loaderunit + 5 integration, includinglayout_tests::*,search::tests::the_first_folder_that_has_the_file_wins, andtitle_dlls_are_searched_in_folder_order).cargo clippy -p victory-loader -p victory --all-targets -- -D warnings: clean.cargo xtask policy: 192 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.