Repository navigation
XSystemGetConsoleId: the console id in its documented format - #66
Merged
Merged
Conversation
The default console id was "XCL000…0001", 41 characters. Console ids
are 38 ("00000000.00000000.00000000.00000000.00"), and titles size the
buffer for that (XSystemConsoleIdBytes), so XSystemGetConsoleId failed
with E_NOT_SUFFICIENT_BUFFER. The default is now the id the docs give
for a PC and for RETAIL (XCL's default sandbox); an xcl.toml that still
has the old default gets the new one when loaded.
ivall
added a commit
that referenced
this pull request
Nov 23, 2026
Collaborator
|
Merged (5ed035c). Tested on Windows 11 with an RX 9070: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
XCL's default console id is
XCL00000000000000000000000000000000000001, 41 characters. TheXSystemGetConsoleIddocs say the buffer "must be equal to or greater than the XSystemConsoleIdBytes constant", and give the id's form as00000000.00000000.00000000.00000000.00, 38 characters. So a title that sizes its buffer the documented way (38 + terminator) getsE_NOT_SUFFICIENT_BUFFERand no console id.The same page says that on a PC, or in RETAIL, the function always returns
00000000.00000000.00000000.00000000.00. XCL's default sandbox isRETAIL, so that string is now the default (config::CONSOLE_ID). Everyxcl.tomlcreated so far has the old default written into it, soload_or_createreplaces exactly that value when loading, the same way it adds new default mounts. A console id the user set themselves is kept.XSystemGetAppSpecificDeviceIdhashes the console id, so its value changes once for users who had the old default. Its 16 hex characters already fitXSystemAppSpecificDeviceIdBytes.Validation
system_infonow reads the console id into a 39-byte buffer. Onmainthat returns0x8007007A(E_NOT_SUFFICIENT_BUFFER).the_console_id_fits_the_console_id_buffer: the default is 38 characters, anxcl.tomlwith the old default loads the new one, and a user-set id is kept.cargo test -p xcl --lib: 344 passed, 0 failed, on Windows GNU under Wine.