upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorDominik <55330408+Dom-in@users.noreply.github.com>2026-11-22 10:49:02 +0000
committerDominik <55330408+Dom-in@users.noreply.github.com>2026-11-22 10:58:12 +0000
commit6f5b59ea8159dd99fba20933616f778135cc1fa7 (patch)
tree42bab2780508bea94893321c607cabc5810fb0d6 /runtime/src/pe_loader.cpp
parentc2967a5e60060e4068fb992196d8f4b494a5046c (diff)
runtime: serve LoadLibrary/GetProcAddress of shim-owned modules; xgameruntime.lib's run-time entry points
The package's GDK modules don't import xgameruntime.dll. libHttpClient.GDK.dll and XCurl.dll have no import entry for it, but both carry the wide string "xgameruntime.dll" and the names InitializeApiImpl[Ex|Ex2], QueryApiImpl and UninitializeApiImpl next to a statically linked XGameRuntimeInitialize: xgameruntime.lib's thunks LoadLibraryW the runtime and GetProcAddress those names. Bound to the host, that bypasses the offline shim. The executable is very likely built the same way. - library_loader.cpp: LoadLibrary*/GetModuleHandle*/GetProcAddress/FreeLibrary for kernel32, kernelbase and the api-ms-win-core-libraryloader sets. A module the registry owns (rt::shims::owns_dll) gets a pseudo-handle and GetProcAddress resolves through the registry; an unserved name is NULL with ERROR_PROC_NOT_FOUND. Every other module goes to the host. - xgameruntime.cpp: the five entry points, with the signatures and the unknown-class error documented by xodus-gaming/xgameruntime-docs (GPL-3.0, facts only). QueryApiImpl logs the class and interface ids and refuses them, so the first boot with the executable names the COM interfaces to implement. - xgameruntime_test drives the path through XCurl.dll's api-set binding; docs/runtime_imports.md records the measurement and the new dry-run counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions