gdk: XSystem and XGame title id conformance against the PC runtime (17 scenarios, 3 fixes) #300
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!300
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/300/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 16:57 UTC · original
QuentinDanblon:pr/gdk-conformance-next→main· +380 −9 · 4 files · 3 commits · closed without mergingLibrary / area:
compat-common, GDK runtimesrc/gdk/system.rs(XSystem, XSystemAnalytics, XGameGetXboxTitleId), plus a paired conformance suite in the style of the XTaskQueue one.Exports changed (exports.txt rows): none
Source of the behaviour: measured on the PC
xgameruntime.dll10.0.26100.9656 (System32, loaded directly withInitializeApiImpl/QueryApiImpl, without going through the emulator's gdk module). Method order comes only from our own emulated tables. No disassembly, no third-party code.Tests
tests/support/xsys.rsholds 17 scenarios and a macro;gdk_xsystem_conformanceruns them on the emulated runtime,gdk_xsystem_conformance_realon the PC runtime (skipped without it). What they check, for the console id (39 bytes), the app-specific device id (45) and the sandbox id (16):usedis the field size for the console and device ids, strlen+1 for the sandbox id, with zero padding;E_NOT_SUFFICIENT_BUFFER, buffer anduseduntouched;usedis accepted;e349bd1a,67ce4bfcand6fd71f09return the same values.XSystemAnalytics: the 144-byte struct returned through the hidden pointer, OS version equal to the host version with the major in the low word, NUL-terminated zero-padded strings. Values that are PC-specific (all-zero console id, family "Windows.Desktop", form "Unknown") are not compared, since the emulator presents a console.
Differences found, each fixed in its own commit
e349bd1aslot 5 (app-specific device id)E_NOTIMPL749eafbXGameGetXboxTitleIdwith no TitleIdE_FAILE_NOT_FOUND(0x80070490), on iids50849859and2549f14289902fcE_INVALIDARGE_NOT_FOUND(the title is checked before the pointer)89902fcWith a TitleId present nothing changes. After the fixes the suite's DIFFERS table is empty.
On
89902fc(basef89e410, r32l), RTX 5090 PC, Windows 11:gdk_xsystem_conformanceandgdk_xsystem_conformance_real: 17/17, 3 runs each;--lib: 147 passed, 1 ignored;gdk_xtaskqueue_conformanceand_real: 61/61 each;gdk_minecraft_slots6/6,gdk_runtime9 passed 1 ignored,gdk_identity1/1,gdk_verifier_fixes14/14,gdk_slot_map1/1.pr_gate.py --base origin/main: 0 problems.Questions for you
1861cf2e(from the #279 census) is not covered here. Add it once #279 is in?XGameGetXboxTitleIdcannot be measured on this machine; that case keepsE_INVALIDARG.Not covered
PC runtime only, no console measurement, no title run. Candidates left out: XPersistentLocalStorage (
QueryApiImplreturnsE_FAILin an unpackaged process), XLaunchUri and the screen-dim deferral (side effects).cargo test -p compat-commonpasses for what is listed above🤖 Generated with Claude Code
@omonkeyz on GitHub · 2026-11-25 13:48 UTC · original
Applied on main in
fb95d74(cherry-picked onto the current history with your authorship kept; comment lines stripped per CONTRIBUTING). Thank you.Pull request closed