feat: offline GDK interfaces (XGameStreaming, XGameUi, XNetworking, XAccessibility, XUser), unnotified subscriptions in E_NOTIMPL — 277/396 #217

Closed
github-bot wants to merge 7 commits from gh-pr/217/head into gh-pr/217/base
Owner

@⁠KainanP on GitHub · 2026-11-25 16:20 UTC · original
KainanP:feat/gdk-offline-interfaces → main · +1522 −50 · 26 files · 7 commits · closed without merging

Supersedes #210 (closed during triage because the README count needed 1200+ after rebasing; GitHub can't reopen it after the force-push). Same commits rebased onto current main, plus one commit setting the README line to 1200+ in all 9 READMEs (the suite collects 1218 tests).

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_NOTIMPL and are logged, instead of S_OK with a token.

Linked issue: Refs #156

  • Commits 1–5 are #156's commits, rebased on main (488a71c) without change: XGameStreaming with no streaming client, XGameUi handed to the game's own UI callbacks, the PC's network settings and high-contrast mode (XNetworking, XAccessibility), XUser devices (Windows' default communications audio endpoint, the all-zero controller id documented for PC).
  • Commit 6 (fix: change subscriptions that are never notified return E_NOTIMPL) is the rule 3 fix. XNetworkingRegisterConnectivityHintChanged and XUserRegisterForDefaultAudioEndpointUtf16Changed are wired to ANYXBOXX_NOT_IMPLEMENTED: E_NOTIMPL, the trace line [runtime] méthode d'interface non écrite appelée -> E_NOTIMPL with ANYXBOXX_TRACE=1, no token written. Their unregister functions return false (no registration can succeed). The queries (XNetworkingGetConnectivityHint, XUserGetDefaultAudioEndpointUtf16) still return the current value.
  • One addition to the two functions named in the closing note: XUserRegisterForDeviceAssociationChanged had the same pattern (S_OK, token, callback never called; it was in the first review of #156 next to the audio endpoint), so it returns E_NOTIMPL too. If you prefer it left as it was, it is one table line in user_device_interface.cpp and one test parameter to revert.
  • Because the three registrations are now ANYXBOXX_NOT_IMPLEMENTED in the tables, the GDK runtime counter drops from 280 to 277 of 396 (README in 9 languages). docs/progress.md and docs/fr/avancee.md: the "Subscriptions" section now says E_NOTIMPL + log and cites the decision on #156.
  • Left as is (not in the closing note, and the event cannot happen in AnyXboxX): XGameStreamingRegisterConnectionStateChanged (no streaming client can ever connect) and XStoreRegisterGameLicenseChanged (already on main; the offline license never changes).
  • Images: carte-avancee.svg and traduction.svg are those of main, 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 main at 488a71c:

python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed!
python -m pytest (RTX 4060)                → 1127 passed, 14 skipped
ANYXBOXX_GPU=warp python -m pytest         → 1127 passed, 14 skipped
ANYXBOXX_GPU=Intel python -m pytest        → 1125 passed, 16 skipped
ANYXBOXX_REQUIRE_RUNTIME=1 python -m pytest tests/test_runtime_*.py → 86 passed

Each commit checked: README test count (1100+) = collected tests rounded down; GDK counter in the README = translation.gdk_runtime_area() (241, 269, 273, 280, 280, 277).

Oracle and test data

  • Rule 3 tests: the three registrations return E_NOTIMPL and leave the caller's token untouched, the unregisters return false; a subprocess with ANYXBOXX_TRACE=1 calls each registration and checks the E_NOTIMPL line on stderr. The five tests fail with the runtime built before commit 6.
  • The rest is unchanged from #156: Microsoft Learn pages cited next to each function; Windows itself as the oracle (IMMDeviceEnumerator, Network List Manager, SPI_GETHIGHCONTRAST). All test data is built in the tests.

Checklist

  • The PR covers a single reviewable behaviour (the offline interfaces of #156, with the rule 3 fix).
  • A test fails without this change and passes with it.
  • The commands and results of each check are given above.
  • An unimplemented function returns an error (E_NOTIMPL), never a fake success.
  • README: the same change in all 9 languages (test_readme_sync.py checks it).
  • No game, console or SDK file, no key, no dump, no download link.
  • Findings drawn from a title: none.
  • Code taken from another project: none.

Made with AI assistance (Claude Code, Claude Opus 5.5); tests run on the adapters above.

🤖 Generated with Claude Code

**@⁠KainanP** on GitHub · 2026-11-25 16:20 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/217) `KainanP:feat/gdk-offline-interfaces` → `main` · +1522 −50 · 26 files · 7 commits · closed without merging Supersedes #210 (closed during triage because the README count needed `1200+` after rebasing; GitHub can't reopen it after the force-push). Same commits rebased onto current `main`, plus one commit setting the README line to `1200+` in all 9 READMEs (the suite collects 1218 tests). ## Change New version of #156, as asked in the maintainer's closing note (https://git.gtahub.st/github/LooperSalty--AnyXboxX/pulls/156): the offline GDK interfaces come back unchanged, and the change subscriptions that AnyXboxX never notifies now return `E_NOTIMPL` and are logged, instead of `S_OK` with a token. Linked issue: Refs #156 - Commits 1–5 are #156's commits, rebased on `main` (`488a71c`) without change: `XGameStreaming` with no streaming client, `XGameUi` handed to the game's own UI callbacks, the PC's network settings and high-contrast mode (`XNetworking`, `XAccessibility`), `XUser` devices (Windows' default communications audio endpoint, the all-zero controller id documented for PC). - Commit 6 (`fix: change subscriptions that are never notified return E_NOTIMPL`) is the rule 3 fix. `XNetworkingRegisterConnectivityHintChanged` and `XUserRegisterForDefaultAudioEndpointUtf16Changed` are wired to `ANYXBOXX_NOT_IMPLEMENTED`: `E_NOTIMPL`, the trace line `[runtime] méthode d'interface non écrite appelée -> E_NOTIMPL` with `ANYXBOXX_TRACE=1`, no token written. Their unregister functions return `false` (no registration can succeed). The queries (`XNetworkingGetConnectivityHint`, `XUserGetDefaultAudioEndpointUtf16`) still return the current value. - **One addition to the two functions named in the closing note:** `XUserRegisterForDeviceAssociationChanged` had the same pattern (`S_OK`, token, callback never called; it was in the first review of #156 next to the audio endpoint), so it returns `E_NOTIMPL` too. If you prefer it left as it was, it is one table line in `user_device_interface.cpp` and one test parameter to revert. - Because the three registrations are now `ANYXBOXX_NOT_IMPLEMENTED` in the tables, the GDK runtime counter drops from 280 to **277 of 396** (README in 9 languages). `docs/progress.md` and `docs/fr/avancee.md`: the "Subscriptions" section now says `E_NOTIMPL` + log and cites the decision on #156. - Left as is (not in the closing note, and the event cannot happen in AnyXboxX): `XGameStreamingRegisterConnectionStateChanged` (no streaming client can ever connect) and `XStoreRegisterGameLicenseChanged` (already on `main`; the offline license never changes). - Images: `carte-avancee.svg` and `traduction.svg` are those of `main`, 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 `main` at `488a71c`: ``` python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed! python -m pytest (RTX 4060) → 1127 passed, 14 skipped ANYXBOXX_GPU=warp python -m pytest → 1127 passed, 14 skipped ANYXBOXX_GPU=Intel python -m pytest → 1125 passed, 16 skipped ANYXBOXX_REQUIRE_RUNTIME=1 python -m pytest tests/test_runtime_*.py → 86 passed ``` Each commit checked: README test count (`1100+`) = collected tests rounded down; GDK counter in the README = `translation.gdk_runtime_area()` (241, 269, 273, 280, 280, 277). ## Oracle and test data - Rule 3 tests: the three registrations return `E_NOTIMPL` and leave the caller's token untouched, the unregisters return `false`; a subprocess with `ANYXBOXX_TRACE=1` calls each registration and checks the `E_NOTIMPL` line on stderr. The five tests fail with the runtime built before commit 6. - The rest is unchanged from #156: Microsoft Learn pages cited next to each function; Windows itself as the oracle (IMMDeviceEnumerator, Network List Manager, SPI_GETHIGHCONTRAST). All test data is built in the tests. ## Checklist - [x] The PR covers a single reviewable behaviour (the offline interfaces of #156, with the rule 3 fix). - [x] A test fails without this change and passes with it. - [x] The commands and results of each check are given above. - [x] An unimplemented function returns an error (`E_NOTIMPL`), never a fake success. - [x] README: the same change in all 9 languages (`test_readme_sync.py` checks it). - [x] No game, console or SDK file, no key, no dump, no download link. - [x] Findings drawn from a title: none. - [x] Code taken from another project: none. Made with AI assistance (Claude Code, Claude Opus 5.5); tests run on the adapters above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sert l'interface XGameStreaming (31 fonctions sur 32) quand AnyXboxX gère le
runtime. Le jeu tourne sur le PC et aucun appareil ne le reçoit : aucun client
(IsStreaming faux, 0 client, état Disconnected), les questions sur un client
répondent E_GAMESTREAMING_CLIENT_NOT_CONNECTED, la latence E_GAMESTREAMING_NO_DATA,
le centre de données E_GAMESTREAMING_NO_DATACENTER, une manette locale
E_GAMESTREAMING_NOT_STREAMING_CONTROLLER, et les API exigent XGameStreamingInitialize
(E_GAMESTREAMING_NOT_INITIALIZED), comme le documente Microsoft Learn.
XGameStreamingSetResolution reste en E_NOTIMPL : la page ne dit pas ce que répond
une console qui ne diffuse pas.
Runtime GDK : 241/396 fonctions, 8 tests ajoutés (655), README 8 langues et cartes à jour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sert l'interface XGameUi (28 fonctions sur 42) quand AnyXboxX gère le runtime.
Sans Gaming Services, il n'y a pas d'interface système : si le jeu a fourni ses
propres écrans par XGameUiSetUiCallbacks (voie documentée par Microsoft Learn),
chaque XGameUiShow*Async (boîte de message, saisie de texte, choix de joueurs,
erreur, profil, invitations, succès) appelle le rappel du jeu sur sa file et
rend la réponse que le jeu donne par XGameUiSet*UiResponse ; la poignée n'est
acceptée qu'une fois, et plus après une annulation (E_ABORT). Sans rappel,
l'appel échoue en E_NOTIMPL : aucune réponse de l'utilisateur n'est inventée.
XGameUiSetNotificationPositionHint réussit sans effet, comme sous Windows.
Authentification web, espace disque, partage d'état et clavier virtuel
(XGameUiTextEntry*) restent en E_NOTIMPL.
Runtime GDK : 269/396 fonctions, 7 tests ajoutés (662), README 8 langues et cartes à jour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
XNetworking : XNetworkingQueryConfigurationSetting, XNetworkingSetConfigurationSetting
et XNetworkingQueryStatistics répondent comme Microsoft Learn le documente pour le
PC, où les tampons TCP de réception de la console n'existent pas : lecture à 0,
modification en E_NOTIMPL, statistiques toutes à 0, E_INVALIDARG pour un réglage
inconnu. Le port UDP préféré et la sécurité d'URL restent en E_NOTIMPL.
XAccessibility : interface servie, XHighContrastGetMode lit le contraste élevé de
Windows (SPI_GETHIGHCONTRAST, sombre ou clair selon le fond du thème). Sous-titres,
synthèse vocale et transcription restent en E_NOTIMPL.
Runtime GDK : 273/396 fonctions, 3 tests ajoutés (665), README 8 langues et cartes à jour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sert l'interface XUser des périphériques (7 fonctions sur 8) quand AnyXboxX gère
le runtime : XUserGetDefaultAudioEndpointUtf16 rend l'identifiant du périphérique
de communication par défaut de Windows (IMMDeviceEnumerator, E_NOTFOUND sans
périphérique, E_GAMEUSER_USER_NOT_FOUND pour un autre profil),
XUserFindControllerForUserWithUiAsync se termine sans fenêtre avec un identifiant
de manette tout à zéro, comme Microsoft Learn le documente pour le PC, et les
abonnements aux changements d'association et de périphérique audio reçoivent un
jeton sans rappel. XUserFindForDevice reste en E_NOTIMPL.
Runtime GDK : 280/396 fonctions, 5 tests ajoutés (670), README 8 langues et cartes à jour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Revue de #156 :
1. Abonnements qui réussissent sans jamais appeler le rappel
   (XNetworkingRegisterConnectivityHintChanged, XUserRegisterForDeviceAssociationChanged,
   XUserRegisterForDefaultAudioEndpointUtf16Changed) : choix de garder le jeton, maintenant
   écrit à côté de chaque fonction et dans docs/progress.md (« Subscriptions: a token without
   notification ») et docs/fr/avancee.md : changement non suivi, valeur courante à relire, et
   pourquoi pas E_NOTIMPL (une inscription refusée peut être fatale au démarrage d'un titre).
2. carte-avancee.svg et traduction.svg : le paquet n'est pas sur cette machine, la
   régénération complète n'est pas possible ici ; les images reviennent à leur version de main
   (la régénération partielle de la section GDK est retirée) pour être régénérées à la fusion.

Commentaires seulement dans le C++ (runtime recompilé, tests verts).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
XNetworkingRegisterConnectivityHintChanged,
XUserRegisterForDeviceAssociationChanged and
XUserRegisterForDefaultAudioEndpointUtf16Changed returned S_OK and a
token although AnyXboxX does not track the change they report, so the
callback was never called: a success without effect, which rule 3
forbids. The maintainer chose not to add an exception to rule 3 (#156).

They are now wired to ANYXBOXX_NOT_IMPLEMENTED: E_NOTIMPL, logged by
the trace (ANYXBOXX_TRACE=1), no token written, and counted as not
written by the GDK runtime counter (280 -> 277 of 396, README in 9
languages). Unregistering returns false: no registration can succeed.
The matching queries (XNetworkingGetConnectivityHint,
XUserGetDefaultAudioEndpointUtf16) still return the current value.
docs/progress.md and docs/fr/avancee.md describe the new behaviour.

Tests: E_NOTIMPL and the token left untouched for the three
registrations, unregister false, and the trace line in a subprocess
with ANYXBOXX_TRACE=1; the five tests fail with the previous runtime.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The suite on this branch rebased onto main collects 1218 tests (1201 passed,
17 skipped on RTX 4060 and WARP), so the rounded line becomes 1200+ in all
9 READMEs (tests/test_readme_sync.py::test_claimed_count_matches_suite).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:37:58 +00:00
github-bot closed this pull request 2026-11-26 05:37:58 +00:00
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-25 18:38 UTC · original

This PR now conflicts with main after the other merges. Please rebase on main and reopen (or open a fresh PR). Thanks!

**@⁠LooperSalty** on GitHub · 2026-11-25 18:38 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/217#issuecomment-7171184899) This PR now conflicts with main after the other merges. Please rebase on main and reopen (or open a fresh PR). Thanks!
Author
Owner

@⁠KainanP on GitHub · 2026-11-25 19:49 UTC · original

Superseded by #231: rebased onto main 4f2cf5c as asked (the README rows were the only conflict); full suite 1338/1338/1336 passed on RTX/WARP/Intel.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-25 19:49 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/217#issuecomment-7172810693) Superseded by #231: rebased onto main 4f2cf5c as asked (the README rows were the only conflict); full suite 1338/1338/1336 passed on RTX/WARP/Intel. _AI use: Claude Code (Claude Opus 5.5)._

Pull request closed

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