feat(xgameruntime): export the GDK API-impl entry points and name what a title asks for #70
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!70
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/70/head"
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?
@Dark3581 on GitHub · 2026-11-23 04:43 UTC · original
Dark3581:feat/api-impl-entry-points→main· +99 −4 · 8 files · 1 commits · merged 2026-11-23 04:47 UTCWhat
The second half after #69. GDK modules don't call the game runtime's named functions; they call
QueryApiImpland theInitializeApiImpl*entry points, then the method tablesQueryApiImplreturns.ab_xgameruntimehad none of these, so a title's first runtime call had nowhere to go. It now exports all six, with the argument shapes measured at call sites in two bundled GDK modules (details in #69):QueryApiImpl(const GUID*, const GUID*, void**)clears the output and stops, naming both GUIDs. Which one is the provider and which the interface is assumed. The method table layouts aren't mapped yet, so the first run names the interface it needs.InitializeApiImpl(u32, u32),InitializeApiImplEx(u64, u64, flags)andInitializeApiImplEx2(u64, u64, flags, pointer)stop with their arguments, because what the handshake checks or records is unknown.UninitializeApiImplis a stub.XErrorReport(HRESULT, const char*)logs the code and message. The modules call it to report their own errors, for example whenQueryApiImplreturns class-not-registered.The README's
xgameruntimerow now says that GDK titles use these tables and that they aren't mapped. The debt entry records the assumptions and how they close: from a public GDK thunk library or measured call sites.Tested
Windows 10, MinGW (GCC) and MSVC 2022.
e2e_api_impl: the relinked fake title loadsxgameruntime.dllat run time with System32-only search, as the GDK thunks do (redirected to AnyBox by #69). It finds all six entry points, callsXErrorReport(logged), then callsQueryApiImplwith two test GUIDs. The run stops as unsupported inQueryApiImpl; the message names both GUIDs andcalleristitle.exe.ab_runtime, then the package's own HTTP client module, and calls its publicHCInitialize(nullptr). The log shows: The module's runtime load reaches AnyBox, not the desktop runtime in System32, and its handshake arrives with the measured values. The harness and module are not in the repository.ctest: 75 of 75. With MSVC,e2e_api_impl,e2e_dynamic_loadande2e_stubpass, and every target builds exceptab_gameinput, which needsgameinput.lib, which this machine doesn't have.python tools/check_conventions.pyanddebt_fold.py --check: ok.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.mdDllCanUnloadNowplus these six)@github-actions[bot] on GitHub · 2026-11-23 04:43 UTC · original
Progress report (
1bdd25b→c63dcce)📈 Libraries: 27.75% (+0.7444%, +5 implemented, +6 declared functions)
✅ 5 implemented
InitializeApiImplInitializeApiImplExInitializeApiImplEx2QueryApiImplXErrorReport🆕 1 declared as stubs
UninitializeApiImplChanged libraries