loader: name a native image's missing imports when it is bound #135

Manually merged
github merged 1 commit from github-bot/gh-135 into main 2026-11-26 19:08:27 +00:00 AGit
Owner

@⁠Olima34 on GitHub · 2026-11-26 18:26 UTC · original
Olima34:feat/name-missing-imports → main · +53 −7 · 2 files · 1 commits · merged 2026-11-26 19:02 UTC

Tester log #123 shows native imports bound hle=7 host=42 missing=3 for the late-loaded amd_fidelityfx_upscaler_xbox.dll: one unresolved import each in api-ms-win-core-debug-l1-1-0, api-ms-win-core-localization-l1-2-0 and api-ms-win-crt-math-l1-1-0. Nothing in the log names them. For a late-loaded DLL, native_run::load_late binds without listing, so the names only appear with victory run --list, which a tester doesn't run.

What (victory-loader/src/native/bind.rs, bind_imports): when imports are missing, the same native imports bound line becomes warn level and gains an unresolved field, dll!symbol, dll!#n, with ordinals through ImportSymbol's Display. It is logged once per bound image. With nothing missing, the line stays info. The Windows loader's own "imports bound" line is untouched. The next tester log will name exactly which HLE functions to add.

Test. unresolved_imports_are_named_with_their_dll checks a name and an ordinal (ImportSymbol::Ordinal(42)).

victory-loader (22), victory-hle (248) and native_probe tests (x86_64-apple-darwin), Windows clippy and cargo xtask policy pass.

**@⁠Olima34** on GitHub · 2026-11-26 18:26 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/135) `Olima34:feat/name-missing-imports` → `main` · +53 −7 · 2 files · 1 commits · merged 2026-11-26 19:02 UTC Tester log #123 shows `native imports bound hle=7 host=42 missing=3` for the late-loaded `amd_fidelityfx_upscaler_xbox.dll`: one unresolved import each in `api-ms-win-core-debug-l1-1-0`, `api-ms-win-core-localization-l1-2-0` and `api-ms-win-crt-math-l1-1-0`. Nothing in the log names them. For a late-loaded DLL, `native_run::load_late` binds without listing, so the names only appear with `victory run --list`, which a tester doesn't run. **What** (`victory-loader/src/native/bind.rs`, `bind_imports`): when imports are missing, the same `native imports bound` line becomes warn level and gains an `unresolved` field, `dll!symbol, dll!#n`, with ordinals through `ImportSymbol`'s `Display`. It is logged once per bound image. With nothing missing, the line stays info. The Windows loader's own "imports bound" line is untouched. The next tester log will name exactly which HLE functions to add. **Test.** `unresolved_imports_are_named_with_their_dll` checks a name and an ordinal (`ImportSymbol::Ordinal(42)`). victory-loader (22), victory-hle (248) and native_probe tests (x86_64-apple-darwin), Windows clippy and `cargo xtask policy` pass.
"native imports bound" gave only counts. For a late-loaded DLL (#123:
amd_fidelityfx_upscaler_xbox.dll, missing=3) nothing else names the
imports, since the dry run lists them only with --list.

When imports are missing, the line is now a warning with an
`unresolved` field naming each as dll!symbol, or dll!#n for an
ordinal, once per bound image. With none missing it stays at info.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:30:52 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 18:56 UTC · original · approved these changes

Reviewed and tested together with the other open PRs on main (macOS x86_64 tests for shader, hle, loader and gpu, the setup shell tests, and Windows clippy). Thanks!

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 18:56 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/135#pullrequestreview-6079230706) · **approved these changes** Reviewed and tested together with the other open PRs on main (macOS x86_64 tests for shader, hle, loader and gpu, the setup shell tests, and Windows clippy). Thanks!
github manually merged commit f38fd6e162 into main 2026-11-26 19:08:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.