XSystem: name the analytics family Windows.Xbox #1656
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1657"
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 Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T20:33:28Z.
Addresses
VIC-BT-045from audit #1242.Summary
XSystemGetAnalyticsInfofilledAnalyticsInfo::familywithXbox. The GDK documents the family value asWindows.Xbox. The field now saysWindows.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 --checkon the changed file — passed.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.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T21:56:02Z.
Review: APPROVED
Tested
932dcbfon Windows 11, RTX 5070, MSVC: builds,cargo test --workspace --no-fail-fast640 passed, 0 failed (on our fork main), clippy-D warningsclean with and without--all-features.Windows.Xboxis the documented device family string forXSystemGetAnalyticsInfoon console.familyfield with its NUL, and the test pins both the text and the terminator.Merged into our fork's main.
AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:32:40Z.
Automated triage for the maintainers.
Merge candidate. This changes
AnalyticsInfo::familyinanalytics_info(crates/victory-hle/src/modules/xsystem.rs) fromXboxtoWindows.Xbox, which matches Microsoft's public documentation forXSystemGetAnalyticsInfo. 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
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
XSystemAnalyticsInfopage gives "Xbox" and "Windows" as example family values, not "Windows.Xbox", andmainreturns "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