upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorRafa23xz <174075006+Rafa23xz@users.noreply.github.com>2026-11-23 20:51:59 +0100
committerRafa23xz <174075006+Rafa23xz@users.noreply.github.com>2026-11-23 20:51:59 +0100
commit7fc6fa72851362875b7105087030ac651db92b35 (patch)
treec0099a9e15f5006df89c55db5982baf628f47654 /runtime/src/bcpack.cpp
parent867d922f09b86583859796a174df89555fb32da8 (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/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions