HLE: route kernelbase.dll registry exports through device_type #2341
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2343"
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 windfallscout on 2026-11-25T11:12:03Z.
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):
AI-assisted (Gemini hydrogen worker, human reviewed); no game data involved.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T11:26:27Z.
Review: APPROVED
Verified against
origin/main(940d32f):kernelbase.dllregistry exports throughdevice_typeensuresConsoleModeoverrides are reached viakernelbase.dll(note: overlaps in scope with#2285, though this PR includes a thorough end-to-end test).cargo test -p victory-hle xsystem: 5/5 passed (includingkernelbase_registry_lookup_hits_emulated_console_mode).cargo clippy -p victory-hle --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T11:51:59Z.
Review: COMMENTED
kernelbase.dll registry exports routed through device_type — this duplicates #2285 (same dlls addition, same ConsoleMode lookup test). Both open right now; whichever merges second conflicts. Suggest closing one.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:27:25Z.
Automated triage for the maintainers.
Proposed close (duplicate). This makes the same one-line change (
kernelbase.dlladded toxsystem::device_type::module().dlls) as #2141, opened earlier for the same issue #2140. #2141's test also covers theGetProcAddresspath throughGetModuleHandleW("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
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.