HLE: route kernelbase.dll registry exports through device_type #2343

Open
github-bot wants to merge 1 commit from github-bot/gh-2343 into main AGit
Owner

@⁠windfallscout on GitHub · 2026-11-25 11:12 UTC · original
windfallscout:fix/hle-kernelbase-2140 → main · +107 −1 · 1 files · 1 commits · open

Closes #2140.

Registry lookups through kernelbase.dll (static import or GetProcAddress) missed the emulated ConsoleMode key because device_type::module() only listed advapi32.dll and the api-set. This adds kernelbase.dll to the dlls list so those lookups reach the device-type overrides like advapi32.dll does; other kernelbase exports still resolve to kernel/files/host as before.

Synthetic tests only, no game data, no GPU (per asset-policy).

Verification (cargo, target x86_64-pc-windows-msvc, CARGO_FEATURE_PURE=1):

  • rustfmt --check: clean
  • cargo check -p victory-hle --tests: clean
  • cargo clippy -p victory-hle --all-targets (-D warnings), plus --all-features: clean
  • New unit tests compile; could not execute them on a CPU-only Linux box (link.exe missing for the Windows target). CI on Windows should run them.

AI-assisted (Gemini hydrogen worker, human reviewed); no game data involved.

**@⁠windfallscout** on GitHub · 2026-11-25 11:12 UTC · [original](https://github.com/Marvisak/VIctory/pull/2343) `windfallscout:fix/hle-kernelbase-2140` → `main` · +107 −1 · 1 files · 1 commits · open Closes #2140. Registry lookups through kernelbase.dll (static import or GetProcAddress) missed the emulated ConsoleMode key because device_type::module() only listed advapi32.dll and the api-set. This adds kernelbase.dll to the dlls list so those lookups reach the device-type overrides like advapi32.dll does; other kernelbase exports still resolve to kernel/files/host as before. Synthetic tests only, no game data, no GPU (per asset-policy). Verification (cargo, target x86_64-pc-windows-msvc, CARGO_FEATURE_PURE=1): - rustfmt --check: clean - cargo check -p victory-hle --tests: clean - cargo clippy -p victory-hle --all-targets (-D warnings), plus --all-features: clean - New unit tests compile; could not execute them on a CPU-only Linux box (link.exe missing for the Windows target). CI on Windows should run them. AI-assisted (Gemini hydrogen worker, human reviewed); no game data involved.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:02:52 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:27 UTC · original

Automated triage for the maintainers.

Proposed close (duplicate). This makes the same one-line change (kernelbase.dll added to xsystem::device_type::module().dlls) as #2141, opened earlier for the same issue #2140. #2141's test also covers the GetProcAddress path through GetModuleHandleW("kernelbase.dll") and the registry API set, which is how the issue says the miss happens; this PR checks only resolver classification and direct calls. If something here is missing from #2141, a comment there is the best place for it. CI: not run.

This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 15:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/2343#issuecomment-7166871106) <!-- victory-triage v1 head=39fc9f654775a237f196d3067119e308d5139a14 verdict=proposed-close at=2026-11-25T15:27:00Z --> Automated triage for the maintainers. **Proposed close (duplicate).** This makes the same one-line change (`kernelbase.dll` added to `xsystem::device_type::module().dlls`) as #2141, opened earlier for the same issue #2140. #2141's test also covers the `GetProcAddress` path through `GetModuleHandleW("kernelbase.dll")` and the registry API set, which is how the issue says the miss happens; this PR checks only resolver classification and direct calls. If something here is missing from #2141, a comment there is the best place for it. CI: not run. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2343/head:github-bot/gh-2343'
git switch 'github-bot/gh-2343'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2343'
git switch 'github-bot/gh-2343'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2343'
git switch 'github-bot/gh-2343'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2343'
git switch 'main'
git merge --squash 'github-bot/gh-2343'
git switch 'main'
git merge --ff-only 'github-bot/gh-2343'
git switch 'main'
git merge 'github-bot/gh-2343'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2343
No description provided.