XSystem: report analytics device family as Windows.Xbox #1939

Closed
ashrafsdrop wants to merge 1 commit from upstream-pr/1941 into main
ashrafsdrop commented 2026-11-25 01:24:55 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-25T01:24:55Z.


Resolves VIC-BT-045 from #1249:

Summary

In \crates/victory-hle/src/modules/xsystem.rs, \nalytics_info\ previously reported \ amily: text(\Xbox).
Per Microsoft GDK documentation for \XSystemAnalyticsInfo, the OS device family string for Xbox consoles running modern GDK / GameOS is documented as \Windows.Xbox\ (with desktop environments reporting \Windows.Desktop\).

Updates \ amily\ to \ ext(\Windows.Xbox)\ and updates the test assertion in \nalytics_info_comes_back_through_the_buffer.

Verification

  • \cargo test -p victory-hle analytics_info: 1 passed, 0 failed.
  • \cargo clippy -p victory-hle --all-targets --all-features -- -D warnings: clean, 0 warnings.
  • \cargo run -p xtask -- policy: 182 files ok.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6594966404 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1941). Originally posted by [ashrafsdrop](https://github.com/ashrafsdrop) on 2026-11-25T01:24:55Z. --- Resolves VIC-BT-045 from #1249: ### Summary In \crates/victory-hle/src/modules/xsystem.rs\, \nalytics_info\ previously reported \ amily: text(\Xbox\)\. Per Microsoft GDK documentation for \XSystemAnalyticsInfo\, the OS device family string for Xbox consoles running modern GDK / GameOS is documented as \\Windows.Xbox\\ (with desktop environments reporting \\Windows.Desktop\\). Updates \ amily\ to \ ext(\Windows.Xbox\)\ and updates the test assertion in \nalytics_info_comes_back_through_the_buffer\. ### Verification - \cargo test -p victory-hle analytics_info\: 1 passed, 0 failed. - \cargo clippy -p victory-hle --all-targets --all-features -- -D warnings\: clean, 0 warnings. - \cargo run -p xtask -- policy\: 182 files ok.
catminou4 commented 2026-11-25 03:02:55 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:10:41Z.

Review: COMMENTED


Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.

XSystem: report analytics device family…: device-family reporting fix (Xbox vs PC analytics family).

<!-- greyfinch-sync:Marvisak/VIctory:review:6050615461 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1941#pullrequestreview-6050615461). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T02:10:41Z. **Review:** COMMENTED --- Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff. XSystem: report analytics device family…: device-family reporting fix (Xbox vs PC analytics family).
Marvisak commented 2026-11-25 09:06:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:18:13Z.


Automated triage for the maintainers.

Merge candidate.

analytics_info in crates/victory-hle/src/modules/xsystem.rs now reports the device family as Windows.Xbox instead of Xbox. The test analytics_info_comes_back_through_the_buffer now asserts the new string.

The PR cites the public documentation of the analytics info call for this value. Windows.Xbox / Windows.Desktop is also the device-family naming that Windows' public analytics APIs use, so the change is consistent with that. The PR does not link the page, and a maintainer may want to confirm it there.

The change is small and stays inside the struct's 64-byte field. Nothing else on main reads the field.

CI: check passes.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7156859217 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1941#issuecomment-7156859217). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T08:18:13Z. --- <!-- victory-triage v1 head=6283f023f8856848c4a3d0b0b8a1ffd6988706e5 verdict=merge-candidate at=2026-11-25T08:18:07Z --> Automated triage for the maintainers. **Merge candidate.** `analytics_info` in `crates/victory-hle/src/modules/xsystem.rs` now reports the device family as `Windows.Xbox` instead of `Xbox`. The test `analytics_info_comes_back_through_the_buffer` now asserts the new string. The PR cites the public documentation of the analytics info call for this value. `Windows.Xbox` / `Windows.Desktop` is also the device-family naming that Windows' public analytics APIs use, so the change is consistent with that. The PR does not link the page, and a maintainer may want to confirm it there. The change is small and stays inside the struct's 64-byte field. Nothing else on `main` reads the field. CI: `check` passes. --- _Generated by [Claude Code](https://claude.ai/code)_
upstream-sync closed this pull request 2026-11-25 23:03:27 +00:00
Marvisak commented 2026-11-25 23:05:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T22:04:42Z.


Automated triage for the maintainers, second look (a review against current main, with builds and tests where they could change the verdict).

Closing because the value is unproven and the title does not read it. The public XSystemAnalyticsInfo page gives "Xbox" and "Windows" as example family values, not "Windows.Xbox", and which string a console reports is not established. The title's two callers read only the OS version fields.

If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7175906347 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1941#issuecomment-7175906347). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T22:04:42Z. --- Automated triage for the maintainers, second look (a review against current `main`, with builds and tests where they could change the verdict). Closing because the value is unproven and the title does not read it. The public `XSystemAnalyticsInfo` page gives "Xbox" and "Windows" as example family values, not "Windows.Xbox", and which string a console reports is not established. The title's two callers read only the OS version fields. If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1939
No description provided.