feat(xgameruntime): implement XSystemGetConsoleId #12
No reviewers
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!12
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/12/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?
@Callimann8 on GitHub · 2026-11-21 12:06 UTC · original
Callimann8:claude/project-thread-fz4yux→main· +42 −3 · 9 files · 1 commits · closed without mergingWhat
Implements
XSystemGetConsoleIdin xgameruntime with its GDK signature. It always returns00000000.00000000.00000000.00000000.00, which the GDK documentation gives as the value on PC and in the retail sandbox. A buffer smaller thanXSystemConsoleIdBytes(39) returnsHRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);consoleIdUsedis optional and receives 39 (terminator included). A nullconsoleIdstops withAbxUnsupported. Adds ane2e_console_idscenario and a debt fragment for the parts not checked on a console.Tested
Cross-built
ab_xgameruntime.dll,fake_title.exeand the relinker with MinGW-w64 on Linux. The newe2e_console_idtest was not run (no Windows host); CI's Windows job runs it.check_conventions.pyanddebt_fold.py --checkpass.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>.mdXSystemConsoleIdBytes= 39 from the public microsoft/XBOX-GDK-dotnet interop constants@github-actions[bot] on GitHub · 2026-11-21 12:07 UTC · original
Progress report (
5327b75→cc0491c)📈 Libraries: 15.62% (+0.2232%, +1 implemented function)
✅ 1 implemented
XSystemGetConsoleIdChanged libraries
@Dark3581 on GitHub · 2026-11-21 12:30 UTC · original · approved these changes
Reviewed — looks good
Landed as it is. The branch conflicted with
mainafter the XThread commit and #14, so I rebased it myself and committed it onmainasc8b782d, with you as author.What I ran
Head
cc0491c, then the same change rebased onmain(b9fdd5d, after #14). MinGW (WinLibs GCC 15.2 UCRT, Ninja, Release) on Windows 10, clean build directory for both.Results
e2e_console_id, repeatedtools/check_conventions.py,tools/debt_fold.py --checkThe rebase only merged the lists both sides append to (test scenarios, the stand-in DLL,
Types.hpp) and dropped theInventory.cppandExports.hppstub lines that #14 had already removed. Your code is unchanged.Findings
Blocking
None.
Non-blocking
None.
Not verified
Behaviour on a console, and the
consoleIdUsedvalue after a short buffer, as recorded in debt.Thanks, a tidy and well-sourced change.
@Dark3581 on GitHub · 2026-11-21 12:30 UTC · original
Landed on
mainasc8b782d(rebased on #14, you as author). Closing, since the commit went in directly rather than through the merge button. Thanks again.Pull request closed