feat: offline GDK interfaces (XGameStreaming, XGameUi, XNetworking, XAccessibility, XUser), unnotified subscriptions in E_NOTIMPL — 277/396 #231
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!231
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-231"
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?
@KainanP on GitHub · 2026-11-25 19:49 UTC · original
KainanP:feat/gdk-offline-interfaces→main· +1520 −43 · 26 files · 7 commits · openSupersedes #217 (closed by the maintainer for conflicts; rebased onto main
4f2cf5cas asked)Only the README rows next to the RDNA 2 lines conflicted (main's RDNA 2 numbers kept, this PR's GDK lines kept). The last commit of #217 (README test count
1200+) is already onmain, so the rebase dropped it; the suite collects 1,355 tests (1300+, already onmain).Change
New version of #156, as asked in the maintainer's closing note (#156): the offline GDK interfaces come back unchanged, and the change subscriptions that AnyXboxX never notifies now return
E_NOTIMPLand are logged, instead ofS_OKwith a token.Linked issue: Refs #156
main(now400e590), their messages translated into English (rule 7):XGameStreamingwith no streaming client,XGameUihanded to the game's own UI callbacks, the PC's network settings and high-contrast mode (XNetworking,XAccessibility),XUserdevices (Windows' default communications audio endpoint, the all-zero controller id documented for PC).docs: cite the Microsoft Learn pages for the PC answers of the XNetworking queries, comment only) gives the source of the zero answers next to the code. XNetworkingConfigurationSetting says for each of the three settings: "Retrieving this setting on PC will always report the value 0". XNetworkingStatisticsType says for each of the three types: "On PC, all statistics in the structure are always reported as 0". Both functions returnS_OKwith these documented values, and an unknown setting or type returnsE_INVALIDARG, as the function pages say.fix: change subscriptions that are never notified return E_NOTIMPL) is the rule 3 fix.XNetworkingRegisterConnectivityHintChangedandXUserRegisterForDefaultAudioEndpointUtf16Changedare wired toANYXBOXX_NOT_IMPLEMENTED:E_NOTIMPL, the trace line[runtime] méthode d'interface non écrite appelée -> E_NOTIMPLwithANYXBOXX_TRACE=1, no token written. Their unregister functions returnfalse(no registration can succeed). The queries (XNetworkingGetConnectivityHint,XUserGetDefaultAudioEndpointUtf16) still return the current value.XUserRegisterForDeviceAssociationChangedhad the same pattern (S_OK, token, callback never called; it was in the first review of #156 next to the audio endpoint), so it returnsE_NOTIMPLtoo. If you prefer it left as it was, it is one table line inuser_device_interface.cppand one test parameter to revert.ANYXBOXX_NOT_IMPLEMENTEDin the tables, the GDK runtime counter drops from 280 to 277 of 396 (README in 9 languages).docs/progress.mdanddocs/fr/avancee.md: the "Subscriptions" section now saysE_NOTIMPL+ log and cites the decision on #156.XGameStreamingRegisterConnectionStateChanged(no streaming client can ever connect) andXStoreRegisterGameLicenseChanged(already onmain; the offline license never changes).carte-avancee.svgandtraduction.svgare those ofmain, to be regenerated at merge with the package, as agreed on #156.Verification
Windows 11 26200, Python 3.12, runtime built from this branch (VS 2022 Build Tools, CMake), on top of
mainate921268:Each commit checked: README test count (
1300+) = collected tests rounded down (1337 to 1355); GDK counter in the README =translation.gdk_runtime_area()(241, 269, 273, 280, 280, 277).Oracle and test data
E_NOTIMPLand leave the caller's token untouched, the unregisters returnfalse; a subprocess withANYXBOXX_TRACE=1calls each registration and checks theE_NOTIMPLline on stderr. The five tests fail with the runtime built before commit 6.Checklist
E_NOTIMPL), never a fake success.test_readme_sync.pychecks it).Made with AI assistance (Claude Code, Claude Opus 5.5); tests run on the adapters above.
🤖 Generated with Claude Code
@LooperSalty on GitHub · 2026-11-25 21:03 UTC · original
Thanks, the offline interfaces return E_NOTIMPL or log where unimplemented, as rule 3 asks.
Some commit messages are in French (for example "docs: abonnements sans notification décrits ..." and "feat: XUser et périphériques ..."). Please reword them in English, or squash to an English message, per rule 7. If the zero-value answers of XNetworkingQueryConfigurationSetting and XNetworkingQueryStatistics come from a Microsoft Learn page, please cite it next to the code.
@LooperSalty on GitHub · 2026-11-25 21:45 UTC · original
Follow-up after the review: the Leonida point is fine now, thanks. Five of the six commit messages are still in French (91a80512, 3ac35273, 1850abd6, 52b6d6f8, 2cd5b95a); please reword them in English (
type: description) or squash into one English commit (rule 7), and rebase on main.@KainanP on GitHub · 2026-11-25 22:53 UTC · original
Thanks. Updated and rebased on main
e921268(headbd9f16b):type: description. Commits 1-5 (feat: offline XGameStreaming…,feat: XGameUi without a system UI…,feat: PC network settings and high contrast…,feat: XUser devices…,docs: describe the subscriptions without notification…) are translations of the French originals, with author KainanP (noreply address) and the Co-Authored-By trailer.S_OK,E_INVALIDARGfor an unknown setting or type), not a fake success.Checks: full suite on the RTX 4060 → 1423 passed, 17 skipped (on
9a06443; the later rebase ontoe921268only brings #263's launcher test;test_readme_syncpasses, 1,441 tests collected → 1400+) (runtime rebuilt from this branch); ruff clean.AI use: Claude Code (Claude Opus 5.5).
@LooperSalty on GitHub · 2026-11-26 00:06 UTC · original
Thanks for rewording the commits in English. One thing left:
docs/images/carte-avancee.svgandtraduction.svgstill show 210/396; AGENTS.md asks to regenerate them withscarlett.py --carte ..and--traduction ..when the counts move. Also commit1dd46828says "8 languages" where 9 READMEs are concerned. Then it is ready.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.