feat(xgameruntime): implement the remaining XSystem functions #79
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox#79
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@CaseReed on GitHub · 2026-11-23 09:17 UTC · original
What
Implements the six XSystem stubs of #22, the whole issue. Three of them are only partly served and stop for the rest; every choice is listed in the debt fragment.
XSystemGetAppSpecificDeviceIdMachineGuidand the<TitleId>. Stable for one title on one Windows installation, different between titles, and the machine GUID does not show through. A buffer under 45 returnsHRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), likeXSystemGetConsoleId.XSystemGetAnalyticsInfoPctitles:osVersionandhostingOsVersionare the host Windows version,familyisWindows,formis empty. XboxOne and Scarlett titles stop.XSystemGetRuntimeInfoPctitles: both versions are zero, the documented value when the gaming runtime service is not installed. XboxOne and Scarlett titles stop.XSystemAllowFullDownloadBandwidthvoidas on the documentation page.XSystemHandleTrackS_OK; a non-null callback stops.XSystemIsHandleValidfalse; any other handle stops.Three points I would like your ruling on:
XSystemGetAnalyticsInfoandXSystemGetRuntimeInfo. The documentation does not give the title OS version, form string or runtime version a console reports, so I did not invent them. These are start-up calls, so a console title that makes them stops there, by name. If you have measured values, they slot into the twoAbxUnsupportedbranches.formis empty forPctitles. It is the one returned value without a source (the documentation gives no desktop example). It is in the fragment; say so if you would rather have the function stop.Other notes:
xgameruntimenow linksbcrypt(already used byd3d12_x). The device-type lookup moved into a helper so that a stop is reported under the calling export's name. The all-zero ID the documentation gives for an error is never returned, because the documentation does not say which result comes with it: an unreadable machine GUID stops.Tested
Windows 11, MSVC 19.38 (Visual Studio 2022), Ninja, Release, clean build directory:
pipeline_probeskipped (no Khronos validation layer here).app_device_id: short-buffer error, size 45, hex format, not all zeros, a nullappSpecificDeviceIdUsed, the machine GUID absent from the ID, then a second run with another title ID (different ID) and a third with the first title ID (same ID).system_pc: family, form, both OS versions against the host version read from the registry bye2e.py, zero runtime versions, the bandwidth call, null-handle cases.analytics_console,runtime_info_console,handle_track,handle_valid: the stop names the right function and message.e2e_app_device_idfails; restored, it passes.python tools/check_conventions.py,python tools/debt_fold.py --check(24 fragments),python tools/readme_docs.py: pass.progress.py --module xgameruntime: 78 implemented.windowsand bothrelinkerjobs green: https://github.com/CaseReed/AnyBox/actions/runs/45144497043Not tested: anything on a console (the ID format, the size reported in
appSpecificDeviceIdUsed, what consoles report for analytics and runtime info). No test triggers the two stops for an unreadable or unhashable machine GUID, nor a missing<TitleId>in the device-ID function.Self-review: an independent pass over the diff (signatures and layouts against the documentation pages, struct-return ABI on MSVC and MinGW, debt lines against the code, whether each test can fail) found nothing blocking. Fixed from it before opening: the all-zero ID was returned with an undocumented
S_OK; the bandwidth debt line did not say the page lists Xbox Series consoles only; the test read the Windows version throughsys.getwindowsversion(), which depends on the Python executable's manifest.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md🤖 Generated with Claude Code
Pull request details or commits were not available from GitHub; kept as an issue.
@github-actions[bot] on GitHub · 2026-11-23 09:18 UTC · original
Progress report (
9f53c52→ c61baee)📈 Libraries: 29.07% (+1.3216%, +6 implemented functions)
✅ 6 implemented
XSystemAllowFullDownloadBandwidthXSystemGetAnalyticsInfoXSystemGetAppSpecificDeviceIdXSystemGetRuntimeInfoXSystemHandleTrackXSystemIsHandleValidChanged libraries