gdk tests: 12 interface ids the PC runtime serves and the emulator refuses, one method table per family on the PC #279

Closed
github-bot wants to merge 1 commit from gh-pr/279/head into gh-pr/279/base
Owner

@⁠QuentinDanblon on GitHub · 2026-11-23 11:05 UTC · original
QuentinDanblon:pr/gdk-iface-census → main · +193 −0 · 2 files · 1 commits · closed without merging

Library / area: compat-common, GDK runtime QueryApiImpl: 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.dll 10.0.26100.9656 (Gaming Services) with InitializeApiImpl and QueryApiImpl. No third-party code. The interface ids were first seen in the .rdata of a libHttpClient.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 PC xgameruntime.dll. No file of the title is in this PR.

What was measured

That libHttpClient.GDK.dll holds 44 interface ids. 30 are known to compat-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:

new id served by provider family we emulate under another id
1bfff3af-f14a-40a3-8e35-9ada906593f9 704c3f58 XGameSave
ab4ae4fb-6508-4950-a032-45fd4bf8c43b 704c3f58 XGameSave
eaf669df-5542-4590-99a3-8dc061f837cc dfcd4649 XGameUi
1861cf2e-e18b-4834-a9f5-b4a4e6efb4cf e349bd1a XSystem
26f3c674-a2fe-44fa-b6c4-a323bc94ff53 01acd177 XUser
e2a4734b-2f4a-456d-aa8f-d065e04fb209 af406016 XPackage
b09d803c-2414-4a05-82c6-66dfdc9e9a44 0dd112ac XStore
5c48dedf-0b67-4492-a4b5-6829b8e796e1 0dd112ac XStore
22e672d7-b4e3-406c-bd50-8f0d25236f9e a4f1aee2 XAppCapture
57786622-6605-46d0-b917-0f22bbcd9c52 0a2192aa XGameStreaming
aebdfe78-4394-49ff-ba3a-001956457044 0a2192aa XGameStreaming
026b010c-06c3-4cdd-bbcb-43f229db1cff 95fd18d2 (also new) none
41a4e10c-5a7e-41d9-8c37-37bde62a07d6 not served with any of the 44 ids
  • For each of the eight families, the PC runtime returns one method table for every id of the family: the ids we emulate and the new ones alike. Two exceptions, each its own table: XUser's gamertag id cef4fac0 (already emulated apart) and XGameStreaming aebdfe78.
  • Our runtime answers the 12 pairs with E_NOINTERFACE and a null object. That is a refusal, not a fake success, and this PR keeps it.
  • Not asserted, noticed on the way: on this PC the provider bbfbdcc7 (XGameEvent) answers its own id with 0x89245108, and f4faf4d4 (XPersistentLocalStorage) with E_FAIL. We emulate both.

Tests

  • gdk_iface_census (no runtime needed, runs in any cargo test -p compat-common): the 12 pairs are not in gdk::implemented(); query_api_impl refuses them with E_NOINTERFACE and 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 (PC xgameruntime.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: with aebdfe78 moved to the same-table list (local change, not committed) it fails on that id.

On 2ea58f0 (base 2d4cbd5, 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 6eeaa73e has fewer slots than 72c4e70f), 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's interfaces(), pointing at the newest table we have; slots we do not implement would stay on the logged E_NOTIMPL stub.

Not covered, not claimed

  • PC runtime only. No console measurement.

  • No title was run.

  • What 95fd18d2 / 026b010c is: 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-common passes for what is listed above

  • No 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:05 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279) `QuentinDanblon:pr/gdk-iface-census` → `main` · +193 −0 · 2 files · 1 commits · closed without merging **Library / area:** `compat-common`, GDK runtime `QueryApiImpl`: 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.dll` 10.0.26100.9656 (Gaming Services) with `InitializeApiImpl` and `QueryApiImpl`. No third-party code. The interface ids were first seen in the `.rdata` of a `libHttpClient.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 PC `xgameruntime.dll`. No file of the title is in this PR. ### What was measured That `libHttpClient.GDK.dll` holds 44 interface ids. 30 are known to `compat-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: | new id | served by provider | family we emulate under another id | |---|---|---| | `1bfff3af-f14a-40a3-8e35-9ada906593f9` | `704c3f58` | XGameSave | | `ab4ae4fb-6508-4950-a032-45fd4bf8c43b` | `704c3f58` | XGameSave | | `eaf669df-5542-4590-99a3-8dc061f837cc` | `dfcd4649` | XGameUi | | `1861cf2e-e18b-4834-a9f5-b4a4e6efb4cf` | `e349bd1a` | XSystem | | `26f3c674-a2fe-44fa-b6c4-a323bc94ff53` | `01acd177` | XUser | | `e2a4734b-2f4a-456d-aa8f-d065e04fb209` | `af406016` | XPackage | | `b09d803c-2414-4a05-82c6-66dfdc9e9a44` | `0dd112ac` | XStore | | `5c48dedf-0b67-4492-a4b5-6829b8e796e1` | `0dd112ac` | XStore | | `22e672d7-b4e3-406c-bd50-8f0d25236f9e` | `a4f1aee2` | XAppCapture | | `57786622-6605-46d0-b917-0f22bbcd9c52` | `0a2192aa` | XGameStreaming | | `aebdfe78-4394-49ff-ba3a-001956457044` | `0a2192aa` | XGameStreaming | | `026b010c-06c3-4cdd-bbcb-43f229db1cff` | `95fd18d2` (also new) | none | | `41a4e10c-5a7e-41d9-8c37-37bde62a07d6` | not served with any of the 44 ids | | - For each of the eight families, the PC runtime returns **one method table for every id of the family**: the ids we emulate and the new ones alike. Two exceptions, each its own table: XUser's gamertag id `cef4fac0` (already emulated apart) and XGameStreaming `aebdfe78`. - Our runtime answers the 12 pairs with `E_NOINTERFACE` and a null object. That is a refusal, not a fake success, and this PR keeps it. - Not asserted, noticed on the way: on this PC the provider `bbfbdcc7` (XGameEvent) answers its own id with `0x89245108`, and `f4faf4d4` (XPersistentLocalStorage) with `E_FAIL`. We emulate both. ### Tests - `gdk_iface_census` (no runtime needed, runs in any `cargo test -p compat-common`): the 12 pairs are not in `gdk::implemented()`; `query_api_impl` refuses them with `E_NOINTERFACE` and 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` (PC `xgameruntime.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: with `aebdfe78` moved to the same-table list (local change, not committed) it fails on that id. On `2ea58f0` (base `2d4cbd5`, 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 `6eeaa73e` has fewer slots than `72c4e70f`), 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's `interfaces()`, pointing at the newest table we have; slots we do not implement would stay on the logged `E_NOTIMPL` stub. ### Not covered, not claimed - PC runtime only. No console measurement. - No title was run. - What `95fd18d2` / `026b010c` is: 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. - [x] `cargo test -p compat-common` passes for what is listed above - [x] No game or console files and no binaries included - [x] No fake success; nothing changes in the runtime, the refusals stay refusals 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A libHttpClient.GDK.dll (file version 2.0.2608.31002, product 2.3.4)
shipped with a GDK title holds 44 interface ids in its .rdata. 30 are
known to compat-common/src/gdk. The 14 others appear nowhere in the
repository. All 14 also occur in the PC xgameruntime.dll
10.0.26100.9656, and everything below was measured there with
InitializeApiImpl and QueryApiImpl, every (provider, iid) pair of the
44 ids tried.

- 12 of the 14 are served by the PC runtime as interface ids of a
  provider we already emulate: XGameSave (2), XGameUi (1), XSystem (1),
  XUser (1), XPackage (1), XStore (2), XAppCapture (1), XGameStreaming
  (2), plus 95fd18d2 as a provider with its own id 026b010c.
- For each of the eight families, the PC runtime returns one method
  table for every id of the family, the ids we emulate and the new
  ones alike. Two exceptions, each its own table: XUser's gamertag id
  (cef4fac0, already emulated apart) and XGameStreaming aebdfe78.
- 41a4e10c was not served with any of the 44 ids.

Our runtime returns E_NOINTERFACE and a null object for the 12 pairs.
That is a refusal, not a fake success, and this commit keeps it.

Two tests:

- gdk_iface_census (no runtime needed): the 12 pairs are not in
  gdk::implemented(), QueryApiImpl refuses them with E_NOINTERFACE and
  a null object, and 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 (PC xgameruntime.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. Checked that it can fail: with aebdfe78 moved to
  the same-table list (local change, not committed) it fails on that
  id.

Not decided here: whether the new ids should be answered with the
emulated table of their family, as the PC runtime does. Our tables
differ per id (XGameUi 6eeaa73e has fewer slots than 72c4e70f), the
PC runtime's do not, and nothing here says what a console title
expects behind the new ids.

Source: measured behaviour of the PC xgameruntime.dll. No third-party
code. No file of the title is in the repository.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:17:04 +00:00
github-bot closed this pull request 2026-11-26 06:17:04 +00:00
Author
Owner

@⁠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.

**@⁠QuentinDanblon** on GitHub · 2026-11-23 11:09 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279#issuecomment-7099139396) 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.
Author
Owner

@⁠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.

**@⁠omonkeyz** on GitHub · 2026-11-23 11:20 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279#issuecomment-7099465615) 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.
Author
Owner

@⁠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!

**@⁠QuentinDanblon** on GitHub · 2026-11-23 11:23 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279#issuecomment-7099573883) 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!
Author
Owner

@⁠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.

**@⁠omonkeyz** on GitHub · 2026-11-23 11:30 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279#issuecomment-7099727543) 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.
Author
Owner

@⁠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!

**@⁠QuentinDanblon** on GitHub · 2026-11-23 11:35 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279#issuecomment-7099832921) · 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!
Author
Owner

@⁠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.

**@⁠omonkeyz** on GitHub · 2026-11-23 13:45 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279#issuecomment-7102984397) 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.
Author
Owner

@⁠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.

**@⁠QuentinDanblon** on GitHub · 2026-11-23 16:14 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279#issuecomment-7106830598) 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.
Author
Owner

@⁠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.

**@⁠omonkeyz** on GitHub · 2026-11-25 13:09 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/279#issuecomment-7163375032) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.