diff options
| author | Rafa23xz <174075006+Rafa23xz@users.noreply.github.com> | 2026-11-23 20:51:59 +0100 |
|---|---|---|
| committer | Rafa23xz <174075006+Rafa23xz@users.noreply.github.com> | 2026-11-23 20:51:59 +0100 |
| commit | 7fc6fa72851362875b7105087030ac651db92b35 (patch) | |
| tree | c0099a9e15f5006df89c55db5982baf628f47654 /runtime/src/vulkan_aftermath.cpp | |
| parent | 867d922f09b86583859796a174df89555fb32da8 (diff) | |
runtime: opt-in compat-module directory (LEONIDA_COMPAT_DIR)
When LEONIDA_COMPAT_DIR names a folder, an import whose DLL is a file
there binds to that DLL's export. Windows loads it from the full path
(LoadLibraryExW, DLL-load-dir + System32 search, never the game folder),
so it takes no manual static-TLS slot. The step comes before shims,
bundled modules and the host, and the DLL owns all imports of its
module: a missing symbol binds to the unimplemented thunk, not a shim.
Unset or empty: no change.
Measured on the 1.0.2.1 executable: --dry-run goes from 20 unimplemented
imports (AcpHal 9, chad 5, xapu 5, XCRDAPI 1) to 0 with the four
matching omonkeyz/xbox-emulator crates in the folder (and their
TOMBOX_* static initializers turned off; see runtime/README.md).
loader_test: five cases with a synthetic OS-loadable DLL (no game data).
AI-assisted (Claude Code).
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions