XUserGetGamertag: components as XUserGamertagComponent documents them #64
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/65"
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?
Imported from ivall/xcl. Originally posted by gefydev on 2026-11-22T23:20:34Z.
Two mismatches between
XUserGetGamertagand theXUserGamertagComponentdocumentation:"Player1#0001"for UniqueModern. The docs say ModernSuffix is "Modern gamertag suffix if present (otherwise empty)" and UniqueModern "contains either the modern gamertag + '#' + modern suffix, or the classic gamertag with no '#' and no suffix". With no suffix, UniqueModern is now the gamertag itself. (If you'd rather keep the#0001shown in games, the other consistent choice is ModernSuffix ="0001"; I went with the existing "no suffix".)gamertagin xcl.toml madeXUserGetGamertag(Classic)returnE_NOT_SUFFICIENT_BUFFERfor a 16-byte buffer. Each component is now cut to its limit at a character boundary.The logic moved into
gamertag_component(tag, component)so it can be tested without changing the global config.Validation
gamertag_components_are_consistent_and_fit_their_buffers:"Player1"gives["Player1", "Player1", "", "Player1"]; a 26-character gamertag gives 15 characters for Classic and 16 for UniqueModern; a multi-byte gamertag is cut at a character boundary; every component fits its buffer.user_add_and_queriesnow also reads UniqueModern throughXUserGetGamertag. Onmainit getsPlayer1#0001.cargo test -p xcl --lib: 344 passed, 0 failed, on Windows GNU under Wine.Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T10:20:58Z.
Merged (
2c1c9ed) as is – the documented "no suffix" form; titles now showPlayer1where they showedPlayer1#0001. Tested on Windows 11 with an RX 9070:cargo test --workspacegreen with the retail samples (shader pack, console DLLs, texture archive), and Unicorn Overlord reaches its title screen with everything from this round merged. Thanks!