native: name the title DLLs and manifest missing from the game folder #143

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

@⁠lautarocherro on GitHub · 2026-11-26 20:11 UTC · original
lautarocherro:fix/name-missing-title-files → main · +99 −6 · 4 files · 1 commits · merged 2026-11-26 22:38 UTC

What this changes

Tester report #104 ran game_scarlett_master.exe from a folder that had none of its 7 DLLs and no MicrosoftGame.config. The log only showed "208 stubbed" and "title 00000000", and the run stopped in a stubbed memset. Nothing in the log said the folder was incomplete.

Now the native run:

  • prints a missing dll <name>: not in <folder> line for each title DLL that stubbed imports come from but that is not in the folder, and warns once to point victory at the whole game folder;
  • finds MicrosoftGame.config whatever its case, as title DLLs already are (dll::find_file, now public);
  • warns when MicrosoftGame.config is absent, since the title ID is then 00000000.

DLLs our runtime serves are never reported, and neither are title DLLs that were mapped.

How it was tested

  • cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory: all pass.
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings: passes.
  • Ran the game, or not needed: not needed. No game files on this Mac.

New tests:

  • native_run::tests::absent_title_dlls_are_named_once_and_runtime_dlls_never
  • native::dll::tests::a_file_is_found_whatever_its_case_and_only_if_it_is_a_file
  • native_list_imports now checks that the probe's victory-probe-host.dll (never built) is named as missing, and that victory-probe-dll.dll (built beside it) is not.

I also copied the probe executable alone into an empty folder, as in #104, and ran it with --execute. The log names both probe DLLs on missing dll lines and gives both warnings.

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md (none)
  • New diagnostics are behind a VICTORY_* variable and documented (none: these are warnings for a broken setup, on by default like the existing "unresolved" lines)
**@⁠lautarocherro** on GitHub · 2026-11-26 20:11 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/143) `lautarocherro:fix/name-missing-title-files` → `main` · +99 −6 · 4 files · 1 commits · merged 2026-11-26 22:38 UTC ## What this changes Tester report #104 ran `game_scarlett_master.exe` from a folder that had none of its 7 DLLs and no `MicrosoftGame.config`. The log only showed "208 stubbed" and "title 00000000", and the run stopped in a stubbed `memset`. Nothing in the log said the folder was incomplete. Now the native run: - prints a `missing dll <name>: not in <folder>` line for each title DLL that stubbed imports come from but that is not in the folder, and warns once to point victory at the whole game folder; - finds `MicrosoftGame.config` whatever its case, as title DLLs already are (`dll::find_file`, now public); - warns when `MicrosoftGame.config` is absent, since the title ID is then `00000000`. DLLs our runtime serves are never reported, and neither are title DLLs that were mapped. ## How it was tested - [x] `cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory`: all pass. - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings`: passes. - [x] Ran the game, or not needed: not needed. No game files on this Mac. New tests: - `native_run::tests::absent_title_dlls_are_named_once_and_runtime_dlls_never` - `native::dll::tests::a_file_is_found_whatever_its_case_and_only_if_it_is_a_file` - `native_list_imports` now checks that the probe's `victory-probe-host.dll` (never built) is named as missing, and that `victory-probe-dll.dll` (built beside it) is not. I also copied the probe executable alone into an empty folder, as in #104, and ran it with `--execute`. The log names both probe DLLs on `missing dll` lines and gives both warnings. ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md (none) - [x] New diagnostics are behind a `VICTORY_*` variable and documented (none: these are warnings for a broken setup, on by default like the existing "unresolved" lines)
Tester report #104 ran an executable whose folder had none of its seven
DLLs and no MicrosoftGame.config. The log only said "208 stubbed" and
"title 00000000", and the run stopped in a stubbed memset.

The run now prints a "missing dll" line for each title DLL that stubbed
imports come from but that is not in the folder, and warns to point
victory at the whole game folder. MicrosoftGame.config is found
whatever its case, as title DLLs already are, and a warning says when
it is absent.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:16:35 +00:00
github manually merged commit 6fc091d673 into main 2026-11-27 00:51:19 +00:00
Author
Owner

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

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

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 22:38 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/143#pullrequestreview-6081181735) · **approved these changes** Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.