XSystem: name the analytics family Windows.Xbox #1656

Closed
Calvix2k wants to merge 2 commits from upstream-pr/1657 into main
Calvix2k commented 2026-11-24 20:33:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T20:33:28Z.


Addresses VIC-BT-045 from audit #1242.

Summary

XSystemGetAnalyticsInfo filled AnalyticsInfo::family with Xbox. The GDK documents the family value as Windows.Xbox. The field now says Windows.Xbox (NUL-terminated), and the analytics test pins the string and its terminator.

Validation

  • cargo test -p victory-hle --locked -- --test-threads=1 — passed (94 unit tests and 1 integration test).
  • cargo clippy -p victory-hle --all-targets --all-features --locked -- -D warnings — passed.
  • cargo xtask policy — passed (154 files).
  • rustfmt --edition 2024 --check on the changed file — passed.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6590860722 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1657). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-24T20:33:28Z. --- Addresses `VIC-BT-045` from [audit #1242](https://github.com/Marvisak/VIctory/issues/1242). ## Summary `XSystemGetAnalyticsInfo` filled `AnalyticsInfo::family` with `Xbox`. The GDK documents the family value as `Windows.Xbox`. The field now says `Windows.Xbox` (NUL-terminated), and the analytics test pins the string and its terminator. ## Validation - `cargo test -p victory-hle --locked -- --test-threads=1` — passed (94 unit tests and 1 integration test). - `cargo clippy -p victory-hle --all-targets --all-features --locked -- -D warnings` — passed. - `cargo xtask policy` — passed (154 files). - `rustfmt --edition 2024 --check` on the changed file — passed.
catminou4 commented 2026-11-24 22:01:47 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T21:41:51Z.

Review: COMMENTED


Static review only: Windows-only code (D3D12/windows_sys/Win32/HLE) — nothing compiles or runs on macOS; source review of the diff.

XSystem analytics family is named 'Windows.Xbox' per the GDK, with an assertion on the exact bytes incl. NUL terminator. One-line fix with a test. victory-hle is Windows-only — static review.

<!-- greyfinch-sync:Marvisak/VIctory:review:6047870712 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1657#pullrequestreview-6047870712). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T21:41:51Z. **Review:** COMMENTED --- Static review only: Windows-only code (D3D12/windows_sys/Win32/HLE) — nothing compiles or runs on macOS; source review of the diff. XSystem analytics family is named 'Windows.Xbox' per the GDK, with an assertion on the exact bytes incl. NUL terminator. One-line fix with a test. victory-hle is Windows-only — static review.
mercuryVM commented 2026-11-24 22:01:47 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T21:56:02Z.

Review: APPROVED


Tested 932dcbf on Windows 11, RTX 5070, MSVC: builds, cargo test --workspace --no-fail-fast 640 passed, 0 failed (on our fork main), clippy -D warnings clean with and without --all-features.

  • Windows.Xbox is the documented device family string for XSystemGetAnalyticsInfo on console.
  • It fits the 64-byte family field with its NUL, and the test pins both the text and the terminator.

Merged into our fork's main.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6048039800 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1657#pullrequestreview-6048039800). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T21:56:02Z. **Review:** APPROVED --- Tested 932dcbf on Windows 11, RTX 5070, MSVC: builds, `cargo test --workspace --no-fail-fast` 640 passed, 0 failed (on our fork main), clippy `-D warnings` clean with and without `--all-features`. - `Windows.Xbox` is the documented device family string for `XSystemGetAnalyticsInfo` on console. - It fits the 64-byte `family` field with its NUL, and the test pins both the text and the terminator. Merged into our fork's main. AI-assisted (Claude Code).
Marvisak commented 2026-11-25 04:06:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:32:40Z.


Automated triage for the maintainers.

Merge candidate. This changes AnalyticsInfo::family in analytics_info (crates/victory-hle/src/modules/xsystem.rs) from Xbox to Windows.Xbox, which matches Microsoft's public documentation for XSystemGetAnalyticsInfo. The string fits the 64-byte field, text() NUL-terminates it, and the test checks both the string and the terminator. The test comment no longer names the console SDK, which was the only point raised on the previous head. #1941 makes the same change and was opened later. Recommending a look, not approving.

CI: passing (check).


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152013020 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1657#issuecomment-7152013020). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:32:40Z. --- <!-- victory-triage v1 head=9b5a024fa4c77468522e8e9ace657143ffdeb984 verdict=merge-candidate at=2026-11-25T09:18:03Z --> Automated triage for the maintainers. **Merge candidate.** This changes `AnalyticsInfo::family` in `analytics_info` (`crates/victory-hle/src/modules/xsystem.rs`) from `Xbox` to `Windows.Xbox`, which matches Microsoft's public documentation for `XSystemGetAnalyticsInfo`. The string fits the 64-byte field, `text()` NUL-terminates it, and the test checks both the string and the terminator. The test comment no longer names the console SDK, which was the only point raised on the previous head. #1941 makes the same change and was opened later. Recommending a look, not approving. CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
upstream-sync closed this pull request 2026-11-25 22:03:05 +00:00
Marvisak commented 2026-11-25 22:04:41 +00:00 (Migrated from github.com)

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


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 evidence does not hold and the title does not read the field. Microsoft's public XSystemAnalyticsInfo page gives "Xbox" and "Windows" as example family values, not "Windows.Xbox", and main returns "Xbox". Which string a console reports is not established. The title's two callers read only the OS version fields, so the change has no effect on it, and the test comment states the misquote as fact.

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:7175849247 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1657#issuecomment-7175849247). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T22:01:58Z. --- 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 evidence does not hold and the title does not read the field. Microsoft's public `XSystemAnalyticsInfo` page gives "Xbox" and "Windows" as example family values, not "Windows.Xbox", and `main` returns "Xbox". Which string a console reports is not established. The title's two callers read only the OS version fields, so the change has no effect on it, and the test comment states the misquote as fact. 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!1656
No description provided.