HLE: complete XPackage progress callback unregistration #1274

Manually merged
github merged 1 commit from gh-pr/1274/head into gh-pr/1274/base 2026-11-26 04:25:58 +00:00
Owner

@⁠EatCodeSleep2 on GitHub · 2026-11-24 17:01 UTC · original
EatCodeSleep2:fix/xpackage-unregister-progress-1249 → main · +39 −1 · 1 files · 1 commits · merged 2026-11-25 00:13 UTC

Summary

  • Bind XPackage vtable slot 0x50 to XPackageUnregisterInstallationProgressChanged with its boolean result and documented parameters.
  • Return success immediately for the completed-installation model, where progress never changes and no callbacks are queued. GDK unregistration contract

Refs #1249, finding VIC-BT-034.

Verification

The synthetic test registers through the vtable, verifies that the unregister entry has the expected signature, and checks immediate success with both wait values. Restoring the old slot fails the pointer check before any mismatched call is made.

  • cargo test --locked -p victory-hle --lib (95 passed)
  • cargo clippy --locked -p victory-hle --all-targets -- -D warnings

AI-assisted. No game files used.

**@⁠EatCodeSleep2** on GitHub · 2026-11-24 17:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/1274) `EatCodeSleep2:fix/xpackage-unregister-progress-1249` → `main` · +39 −1 · 1 files · 1 commits · merged 2026-11-25 00:13 UTC ## Summary - Bind XPackage vtable slot 0x50 to `XPackageUnregisterInstallationProgressChanged` with its boolean result and documented parameters. - Return success immediately for the completed-installation model, where progress never changes and no callbacks are queued. [GDK unregistration contract](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xpackage/functions/xpackageunregisterinstallationprogresschanged) Refs #1249, finding VIC-BT-034. ## Verification The synthetic test registers through the vtable, verifies that the unregister entry has the expected signature, and checks immediate success with both wait values. Restoring the old slot fails the pointer check before any mismatched call is made. - `cargo test --locked -p victory-hle --lib` (95 passed) - `cargo clippy --locked -p victory-hle --all-targets -- -D warnings` AI-assisted. No game files used.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:25:57 +00:00
github manually merged commit 4f54c47755 into gh-pr/1274/base 2026-11-26 04:25:58 +00:00
Author
Owner

@⁠acetonahard-code on GitHub · 2026-11-24 20:57 UTC · original

Heads-up: #1367, opened about 35 minutes after this one, adds the same unregister_progress function and binds it to slot 0x50. The two conflict in xpackage.rs.

Tested on Windows 11 with the repo toolchain, merged into current main (ffe310e):

cargo test -p victory-hle passed failed ignored
main 95 0 0
main + this PR 96 0 0
  • The new test passes.
  • cargo clippy --all-targets -- -D warnings, with and without --all-features: clean.
  • Minor: cargo fmt --check would rewrap one block this PR adds (xpackage.rs). main isn't rustfmt-clean either, so take it or leave it.

I didn't test with game data.


Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.

**@⁠acetonahard-code** on GitHub · 2026-11-24 20:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/1274#issuecomment-7144290312) Heads-up: #1367, opened about 35 minutes after this one, adds the same `unregister_progress` function and binds it to slot 0x50. The two conflict in `xpackage.rs`. Tested on Windows 11 with the repo toolchain, merged into current `main` (ffe310e): | `cargo test -p victory-hle` | passed | failed | ignored | |---|---|---|---| | `main` | 95 | 0 | 0 | | `main` + this PR | 96 | 0 | 0 | - The new test passes. - `cargo clippy --all-targets -- -D warnings`, with and without `--all-features`: clean. - Minor: `cargo fmt --check` would rewrap one block this PR adds (`xpackage.rs`). `main` isn't rustfmt-clean either, so take it or leave it. I didn't test with game data. --- <sub>Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.</sub>
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1274
No description provided.