XGameRuntime: XPackageEnumeratePackages reports the game's real details #844
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!844
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-844"
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?
@mastrr9 on GitHub · 2026-11-24 06:39 UTC · original
mastrr9:fix/xgameruntime-package-details-manifest→main· +137 −11 · 3 files · 1 commits · openPopulates
XPackageDetailsinXPackageEnumeratePackagesfrom the running game'sMicrosoftGame.Configinstead of placeholders:<Identity Version>,<StoreId>, and<ShellVisuals>(DefaultDisplayName,PublisherDisplayName,Description) inmanifest.rs(usingxml_attrsso XML entities are unescaped).<Identity Version>to1.0.0.0when absent; falls back cleanly for unresolvedms-resource:strings (identity name for display name, empty for publisher/description).XPackageDetails.titleIDto 8 uppercase hex digits without"0x".reads_the_package_identity_and_shell_visualsandpackage_details_come_from_the_game_config(including 80-bytePackageDetailslayout check).Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled7b383149c792d7ee9628a58fec4e5f66c770e61ecargo build --workspace: clean (only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 715 passed, 0 failed, 41 ignored (new testsreads_the_package_identity_and_shell_visualsandpackage_details_come_from_the_game_configpassed)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Regression run
Smoke run by @Toons29 in comment below: #844
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.
main:
PR:
Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; the tester checked the blocks before posting.Not tested
AI use
XPackageEnumeratePackages gave the running game version 1.0.0.0, the sanitized identity name as its display name and empty publisher, description and store id, whatever its MicrosoftGame.Config says. The title id was the configured string uppercased, not always the 8 hex digits the GDK reference specifies for XPackageDetails.titleID. Now the details come from MicrosoftGame.Config, as on a console: <Identity Version> (1.0.0.0 when absent, the schema's default), <StoreId>, and <ShellVisuals> DefaultDisplayName, PublisherDisplayName and Description. A value naming a localized string ("ms-resource:...") is resolved from resources.pri on a console; XCL does not read that file, so the display name falls back to the identity name and the other strings to empty rather than handing the title the raw reference. The title id is normalised to 8 uppercase hex digits without "0x". The package identifier itself is unchanged. Assisted-by: Claude Code (Claude Opus 5.5)@futurepro62 on GitHub · 2026-11-24 07:06 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
7b38314(on its basebeaa245).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 715 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.package_details_come_from_the_game_config,reads_the_package_identity_and_shell_visuals.Not tested
AI use
@SlopTart on GitHub · 2026-11-24 08:09 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
7b38314onto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 706 passed, 11 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows plus #718 trio members and a hit ofgpu_mirror_upload_follows_cpu_writes_and_later_mapping_changes(new flake, see #718 addendum). XPackageEnumeratePackages tests green.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@Toons29 on GitHub · 2026-11-25 03:03 UTC · original
Regression run of
c5f5afa8on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@JJAutoCompare on GitHub · 2026-11-25 05:57 UTC · original
Empirical test report (
c5f5afa8)PR #844, tested at commit
c5f5afa87a385eb6b15f9d424ac6a97eff189334.Hardware / environment
10.0.26200, on an AMD Family 23 Model 113 Stepping 0 CPU with 12 logical processors available to the shell.stable-x86_64-pc-windows-msvc,rustc 1.100.0 (0ef1bc386 2026-11-09), and DXC1.9.2609.5 (01b62ad47). Cargo incremental compilation and dev/test debug info were disabled.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Neither test initializes D3D12. Both commands ran outsideInvoke-ArcTest.ps1, with no Arc GPU mutex held.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test executables.cargo test -p xcl --lib -- --nocapture --exact hle::xgameruntime::api::tests::package_details_come_from_the_game_config manifest::tests::reads_the_package_identity_and_shell_visualsexited 0. 2 passed, 0 failed, 0 ignored, and 0SKIPPEDlines. Counts come from case-sensitive matches in the captured output.Observed behavior
MicrosoftGame.ConfigXML. It also checked thems-resource:fallback for description and display name, defaults for missing manifest data, version parsing, uppercase eight-digit formatting for valid title IDs, and the 80-bytePackageDetailssize.Not tested
XPackageEnumeratePackagesthrough its callback ABI was outside this focused run.AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr844-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 10:27 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.