Run: find title DLLs, the manifest and G: in a separated exe/dump layout #3350
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-26T19:40:50Z.
Fixes #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
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T19:48:05Z.
Review: APPROVED
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).
Imported from Marvisak/VIctory. Originally posted by passerbyyhx on 2026-11-26T22:33:01Z.
I exercised the Windows
victory run ... --executeentry point atadccf080113532c9377a990e8096676a1be9ecb9and its parent in five fresh processes per revision. A generated EXE calls an export in the title's own DLL and reads a byte fromG:\fixture.bin. Its exit code encodes both values. The CLI supplies the independently checked manifest TitleID.The independent markers distinguish the selected DLL from the package mount even when they come from different folders. Source-only reproducer. AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T23:15:14Z.
Review: APPROVED
Reviewed
adccf080merged ontomain(63bcca43) — clean support for separated executable and content directories across startup archives, manifest/G: mounting, initial title DLLs, andLateDlls.Verification
cargo xtask policy: 191 files ok;cargo clippy --locked -p victory -p victory-loader --all-targets -- -D warnings(both default and--features diagnostics): 0 warnings;Cargo.lockdiff is a single dev-dependency link (tempfile).cargo test --locked -p victory-loader(includingload_probeandtitle_dllsintegration tests) andcargo test --locked -p victory(17 unit tests + integration tests) all passed on Windows.TitleLayout(apps/victory/src/run.rs:44-103) andfind_title_dll(crates/victory-loader/src/search.rs:9-14) against additional edge cases: nonexistentgame_dir, Unicode directory names, mixed-case DLL lookups, andstartup_archive/MicrosoftGame.configlocated ingame_dir— all resolved in the expectedexe_dir-first priority order.Minor non-blocking note
exeis passed as a bare filename without a parent component (e.g.Path::new("title.exe")),exe.parent()returnsSome("")rather thanNone, sosame_dir("", ".")cannot canonicalize""and keeps both""and"."inlayout.dirs. Filtering empty parents (.filter(|p| !p.as_os_str().is_empty())before.unwrap_or(Path::new("."))atapps/victory/src/run.rs:125) would normalize that edge case cleanly (same pre-existing behavior asmain).LGTM.
Imported from Marvisak/VIctory. Originally posted by steven-seagull27 on 2026-11-27T11:01:35Z.
I checked the Windows
victory runmap-and-bind entry point on the parent (63bcca43) and this PR (adccf080). Each row used a fresh process and isolated data and cache directories. I checked the expected manifest ID independently.The third layout isolates the manifest lookup: all imports already bound on the parent, but the ID was zero. On the PR, all three layouts matched the unified control in both identity and bindings. All six processes exited normally after binding. This check covered manifest and DLL lookup through the CLI; it stopped before guest execution or a read from
G:.AI-assisted with 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.