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· +3609 −109 · 36 files · 10 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 English and French).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.bd9f16b6e1to08d85681a7@KainanP on GitHub · 2026-11-26 09:07 UTC · original
Rebased onto main
c4c93bdafter #230/#232/#235 merged (head08d8568); README recounted from the code: GDK runtime 277/396 in the 9 READMEs (main's text kept, only the GDK sentence and row changed), RDNA 2 line unchanged at main's 1,285/1,490, test count stays 1600+.Your two points:
docs/images/carte-avancee.svgandtraduction.svg: new commit08d8568re-renders their GDK parts withemu.status_map/emu.translationonruntime/xgameruntime(GDK badge, GDK section of the map, GDK row of the chart): 277/396, 30/34 interfaces. These parts depend only on the runtime sources. The other sections need the game package, which I don't have here, so they stay as on main. As a check, the same rendering from main's runtime sources gives main's images byte for byte.f08749c(was1dd46828) now says "README in 9 languages".Tests:
test_readme_sync, the four runtime test files of this PR,test_status_map,test_translation,test_gdk_interfaces,test_gdk_boot: 88 passed, 1 skipped; ruff clean. No code changed during the rebase (conflicts were README lines only), so I did not rerun the full suite.AI use: Claude Code (Claude Opus 5.5).
@KainanP on GitHub · 2026-11-26 13:02 UTC · original
Merged main (
b5a9d10, with #351) into the branch and ported this PR's interfaces to the Rust runtime (headf494613).With #351,
tests/test_rust_dlls.pyruns the runtime test files againstcrates/anyxboxx-xgameruntimetoo. Before the port, the Rust DLL answeredE_NOTIMPLfor everything this PR adds, so that test failed (15 failed, 8 errors inside it). Commit68c1d51ports the same behaviour to the crate, following the approach #351 used for the existing interfaces (one module per interface, registered inserved.rs):streaming.rs:XGameStreamingwith no streaming client (documentedE_GAMESTREAMING_*codes, display-details checks;XGameStreamingSetResolutionstaysE_NOTIMPL).gameui.rs,gameui_input.rs,gameui_responses.rs,gameui_requests.rs:XGameUiscreens are handed to the game's callbacks through VIctory'sxasync. When the game gave no callback, the call returnsE_NOTIMPLand is logged.accessibility.rs:XHighContrastGetModereads Windows' real setting. Captions and speech stayE_NOTIMPL.user_device.rs: Windows' default communications endpoint and the all-zero controller id on PC.XUserRegisterForDeviceAssociationChangedandXUserRegisterForDefaultAudioEndpointUtf16ChangedreturnE_NOTIMPLand are logged.networking.rs: TCP buffer settings and statistics. The Microsoft Learn quotes forXNetworkingConfigurationSettingandXNetworkingStatisticsType("always 0 on PC") sit next to the code, as in the C++.XNetworkingRegisterConnectivityHintChangednow returnsE_NOTIMPLand is logged on the Rust side too. Main's Rust port still accepted that subscription without ever notifying it.The C++ side is unchanged (main still builds it as the oracle).
docs/rust-full-status.mdand its French version mention the port.Figures:
gdk_runtime_area()still reads the C++ tables. Those tables and the Rust tables now give the same answers, andtest_rust_dllschecks that they match. The count stays 277/396 (30/34 interfaces) and the README count stays 1800+ (1,835 tests collected). No README or image change.Checks on the RTX 4060, after building Rust with the CI profile and
runtime/with CMake:ANYXBOXX_REQUIRE_RUNTIME=1 pytest -n auto→ 1834 passed, 1 skipped.cargo test --release -p anyxboxx-xgameruntime→ 81 passed;cargo test --release --workspacepasses.cargo clippy -p anyxboxx-xgameruntime --all-targets -- -D warnings,cargo fmt --checkand ruff are clean.These results are from
68c1d51. The last main merge only brings.gitattributes(#359).AI use: Claude Code (Claude Opus 5.5).
f494613858toe504a09610@KainanP on GitHub · 2026-11-26 16:21 UTC · original
Rebased onto main
ce0f90f(after #343 and #252), heade504a09: ten linear commits, the two merge commits are gone (previous head kept locally as tagpre-rebase-231c).gdk_runtime_area(), 30/34 interfaces). New commite504a09moves the test count to 1900+ (1,922 collected).ANYXBOXX_REQUIRE_RUNTIME=1,pytest -n auto) 1921 passed, 1 skipped, Rust xgameruntime parity (test_rust_dlls.py) included;cargo test -p anyxboxx-xgameruntime85 passed;cargo clippy -p anyxboxx-xgameruntime --all-targets -- -D warningsclean; ruff (W605,F,E9) clean.AI use: Claude Code (Claude Opus 5.5).
e504a09610to3985aacd30@KainanP on GitHub · 2026-11-26 18:26 UTC · original
Rebased onto main
8e32daa(after #407), head3985aac(previous head kept locally as tagpre-rebase4-231).3985aac, puts this PR's figure back in both READMEs and lists the interfaces it serves (streaming, system dialogs, network settings, high contrast, audio devices). The old "test count 1900+" commit became empty and was dropped, because main already says 1900+.gdk_runtime_area()gives 277 of 396 (30/34 interfaces) on the rebased tree, against 210/396 (26/34) on main. The progress map and translation chart match. Test count 1900+ (1,930 collected).ANYXBOXX_REQUIRE_RUNTIME=1,pytest -n auto) 1929 passed, 1 skipped, with the Rust xgameruntime parity tests (test_rust_dlls.py).cargo test --release -p anyxboxx-xgameruntime87 passed.cargo clippy -p anyxboxx-xgameruntime --all-targets -- -D warnings,cargo fmt --checkand ruff (W605,F,E9) are clean.AI use: Claude Code (Claude Opus 5.5).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.