Title DLLs at run time: find by name, map on first LoadLibrary

GetModuleHandle* and LoadLibrary* find the title's images and our
console modules by file name. LoadLibrary* of a title DLL nothing
imports maps, binds and attaches it on the calling thread (a title's
own loader DLL may load its backends this way). FreeLibrary never
unloads title images.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MarvisandClaude Opus 5.5 committed 2026-11-23 14:59:03 +01:00
1 parent 754619f30e
commit d032b8a241
7 files changed
+288 -65

No files matched your search

+2
View File
@@ -58,6 +58,8 @@ For every `dll!function` the title imports, in order:
`LoadLibrary*` of a console-only DLL we implement (e.g. `xgameruntime.dll`)
returns a pseudo handle; `GetProcAddress` on it finds our functions.
`LoadLibrary*` of a title DLL returns its mapped image, mapping it first if
nothing imports it.
`QueryApiImpl` hands out our runtime objects by provider (task queues and
async blocks so far, `victory-hle::modules::xasync`).