gdk tests: 12 interface ids the PC runtime serves and the emulator refuses, one method table per family on the PC #279
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!279
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/279/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?
@QuentinDanblon on GitHub · 2026-11-23 11:05 UTC · original
QuentinDanblon:pr/gdk-iface-census→main· +193 −0 · 2 files · 1 commits · closed without mergingLibrary / area:
compat-common, GDK runtimeQueryApiImpl: two new test files only (tests/gdk_iface_census.rs,tests/gdk_iface_census_real.rs). No runtime code changes.Exports changed (exports.txt rows): none
Source of the behaviour: measured on the PC
xgameruntime.dll10.0.26100.9656 (Gaming Services) withInitializeApiImplandQueryApiImpl. No third-party code. The interface ids were first seen in the.rdataof alibHttpClient.GDK.dll(file version 2.0.2608.31002, product 2.3.4) that ships with a GDK title; all of them also occur in the PCxgameruntime.dll. No file of the title is in this PR.What was measured
That
libHttpClient.GDK.dllholds 44 interface ids. 30 are known tocompat-common/src/gdk. The 14 others appear nowhere in the repository. I tried every (provider, iid) pair of the 44 ids on the PC runtime:1bfff3af-f14a-40a3-8e35-9ada906593f9704c3f58ab4ae4fb-6508-4950-a032-45fd4bf8c43b704c3f58eaf669df-5542-4590-99a3-8dc061f837ccdfcd46491861cf2e-e18b-4834-a9f5-b4a4e6efb4cfe349bd1a26f3c674-a2fe-44fa-b6c4-a323bc94ff5301acd177e2a4734b-2f4a-456d-aa8f-d065e04fb209af406016b09d803c-2414-4a05-82c6-66dfdc9e9a440dd112ac5c48dedf-0b67-4492-a4b5-6829b8e796e10dd112ac22e672d7-b4e3-406c-bd50-8f0d25236f9ea4f1aee257786622-6605-46d0-b917-0f22bbcd9c520a2192aaaebdfe78-4394-49ff-ba3a-0019564570440a2192aa026b010c-06c3-4cdd-bbcb-43f229db1cff95fd18d2(also new)41a4e10c-5a7e-41d9-8c37-37bde62a07d6cef4fac0(already emulated apart) and XGameStreamingaebdfe78.E_NOINTERFACEand a null object. That is a refusal, not a fake success, and this PR keeps it.bbfbdcc7(XGameEvent) answers its own id with0x89245108, andf4faf4d4(XPersistentLocalStorage) withE_FAIL. We emulate both.Tests
gdk_iface_census(no runtime needed, runs in anycargo test -p compat-common): the 12 pairs are not ingdk::implemented();query_api_implrefuses them withE_NOINTERFACEand writes a null object; every family but the unnamed provider is emulated under another id. A row fails once someone emulates that id, so the list stays current.gdk_iface_census_real(PCxgameruntime.dll, skipped without it): for the eight families, the new ids and the ids we emulate give the same method table, the two exceptions give another one, and the unnamed provider answers. 24 ids checked. Checked that it can fail: withaebdfe78moved to the same-table list (local change, not committed) it fails on that id.On
2ea58f0(base2d4cbd5, r32k), RTX 5090 PC, Windows 11: both tests 3 runs, all passed.pr_gate.py --base origin/main: 0 problems.The question for you
Should the new ids be answered with the emulated table of their family, as the PC runtime does? I did not do it. Our tables differ per id (XGameUi
6eeaa73ehas fewer slots than72c4e70f), the PC runtime's do not, and nothing here says what a console title expects behind the new ids. If you want it, the smallest step would be one line per id in each family'sinterfaces(), pointing at the newest table we have; slots we do not implement would stay on the loggedE_NOTIMPLstub.Not covered, not claimed
PC runtime only. No console measurement.
No title was run.
What
95fd18d2/026b010cis: unknown.Which slots each new id uses: not measured. "Same method table" says the PC runtime serves them with one object, not that a title calls the same slots through them.
cargo test -p compat-commonpasses for what is listed aboveNo game or console files and no binaries included
No fake success; nothing changes in the runtime, the refusals stay refusals
🤖 Generated with Claude Code
@QuentinDanblon on GitHub · 2026-11-23 11:09 UTC · original
I'm stopping here for now. Nothing else is running on my side for this PR or the others. The question above about answering the new ids with the family's table is yours to decide; I'll pick it up from your answer when I'm back.
@omonkeyz on GitHub · 2026-11-23 11:20 UTC · original
Thanks for the census. It will be merged as a test-only change once its tests pass here; for now the emulator keeps refusing these 12 ids with E_NOINTERFACE, as your test asserts.
On answering the new ids with the family's table: only where the method layout is proven identical (same slot order and the same signatures) from the official GDK headers. Matching table pointers in the installed PC runtime is a good hint, but not the proof. Where an id is proven, it can share the family's table together with a test that asserts each slot. Where it isn't, it stays E_NOINTERFACE and the IID is logged, because aliasing to a different vtable would be a fake success. Please add the per-IID header proof here, or open a separate PR per id.
@QuentinDanblon on GitHub · 2026-11-23 11:23 UTC · original
Thanks for the clear answer, that rule makes sense.
I'm going to stop contributing here. I've put as much time and money into this project as I can, and I won't be writing more code or opening more PRs. The open ones are yours to merge, rework or close as you see fit; this one is fine as the test-only change you described.
If you need anything from me to help with the development, a question about one of my PRs or about how something was measured, just ask here and I'll answer.
I gave what I could. It was a pleasure to work on this with you. I hope the project goes far and gets there in time. Good luck!
@omonkeyz on GitHub · 2026-11-23 11:30 UTC · original
Thank you, Quentin, for everything you've put into this: the GDK runtime work, the XAsync and task-queue fixes, the translator work and the careful measurements behind them. None of your open PRs will be closed. Each one keeps its gate, and any rework is done here, with your authorship kept on your commits and ours added as separate commits. This one goes in as the test-only change. We may ask questions in the PR threads now and then. Thanks again, and good luck.
@QuentinDanblon on GitHub · 2026-11-23 11:35 UTC · original · edited 2026-11-23 11:38 UTC
Thanks a lot, that's generous of you.
I have every reason to want this to ship as soon as possible: I want to play on it too 😄 I'll keep following what happens here and keep an eye on the threads for questions. If some claude quota frees up on my side, I'll come back and lend a hand.
Good luck with the release!
@omonkeyz on GitHub · 2026-11-23 13:45 UTC · original
Applied locally on main with your authorship kept (cherry-picked,
ab25c62); tests pass in a sandbox. It ships in the next release; this PR will be closed when that is pushed. Thanks.@QuentinDanblon on GitHub · 2026-11-23 16:14 UTC · original
One more thing, in case it helps. I own a retail copy of "The Game". I won't share any of its files. If there is something about it you'd like checked on my side, offline, or a lead you have that could be developed, tell me what you need. Small, well-scoped questions are best, since my time on this is limited now.
@omonkeyz on GitHub · 2026-11-25 13:09 UTC · original
Applied on main in
ab25c62(cherry-picked onto the current history with your authorship kept; comment lines stripped per CONTRIBUTING). Thank you.Pull request closed