HLE: complete XPackage progress callback unregistration #1274

Merged
EatCodeSleep2 merged 1 commit from upstream-pr/1274 into main 2026-11-25 00:13:44 +00:00
EatCodeSleep2 commented 2026-11-24 17:01:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by EatCodeSleep2 on 2026-11-24T17:01:01Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6587114942 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1274). Originally posted by [EatCodeSleep2](https://github.com/EatCodeSleep2) on 2026-11-24T17:01:01Z. --- ## 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.
acetonahard-code commented 2026-11-24 21:03:47 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T20:57:47Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144290312 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1274#issuecomment-7144290312). Originally posted by [acetonahard-code](https://github.com/acetonahard-code) on 2026-11-24T20:57:47Z. --- 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>
upstream-sync closed this pull request 2026-11-25 01:06:07 +00:00
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!1274
No description provided.