XPackage: wire XPackageEnumerateChunkAvailability (slot 13 / 0x68) #1928

Closed
ashrafsdrop wants to merge 3 commits from upstream-pr/1930 into main
ashrafsdrop commented 2026-11-25 01:08:14 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-25T01:08:14Z.


Summary

Wires \XPackageEnumerateChunkAvailability\ into slot 13 (offset \

<!-- greyfinch-sync:Marvisak/VIctory:issue:6594768949 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1930). Originally posted by [ashrafsdrop](https://github.com/ashrafsdrop) on 2026-11-25T01:08:14Z. --- ### Summary Wires \XPackageEnumerateChunkAvailability\ into slot 13 (offset \
catminou4 commented 2026-11-25 03:02:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:10:38Z.

Review: COMMENTED


Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.

XPackageEnumerateChunkAvailability wired (slot 13): XPackage API completeness — small HLE fix.

<!-- greyfinch-sync:Marvisak/VIctory:review:6050614790 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1930#pullrequestreview-6050614790). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T02:10:38Z. **Review:** COMMENTED --- Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff. XPackageEnumerateChunkAvailability wired (slot 13): XPackage API completeness — small HLE fix.
Marvisak commented 2026-11-25 09:06:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:17:37Z.


Automated triage for the maintainers.

Needs work.

crates/victory-hle/src/modules/xpackage.rs, enumerate_chunk_availability (slot 0x68): the stub returns S_OK and never calls the callback. A caller would read that as "the package has no chunks". On main the slot is missing::<13>, which logs the call and returns E_NOTIMPL, so an unexpected call shows up in the log. Replacing that with a silent success changes runtime behaviour, and the PR gives no evidence for it: the description is cut off after "offset", and nothing shows the title calls this slot or what it expects back. The parameter list (id, selector count, selectors, context, callback) also doesn't match the publicly documented function, which takes a selector type rather than a selector list. To change the verdict:

  • Show that the title calls this slot (call site or log), with the signature it uses.
  • Have the stub report the installed chunks through the callback the way the title expects, or keep missing until that's known.
  • Drop the added register/unregister test: completed_installation_unregisters_progress_immediately on main already covers it.
  • Keep the vtable comment columns aligned as in the rest of the table.

CI: check failing.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7156847252 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1930#issuecomment-7156847252). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T08:17:37Z. --- <!-- victory-triage v1 head=e462eb1b9b8b33106164edb0e5fc3d5e1d3d0a5e verdict=needs-work at=2026-11-25T08:17:26Z --> Automated triage for the maintainers. **Needs work.** `crates/victory-hle/src/modules/xpackage.rs`, `enumerate_chunk_availability` (slot 0x68): the stub returns `S_OK` and never calls the callback. A caller would read that as "the package has no chunks". On `main` the slot is `missing::<13>`, which logs the call and returns `E_NOTIMPL`, so an unexpected call shows up in the log. Replacing that with a silent success changes runtime behaviour, and the PR gives no evidence for it: the description is cut off after "offset", and nothing shows the title calls this slot or what it expects back. The parameter list (id, selector count, selectors, context, callback) also doesn't match the publicly documented function, which takes a selector type rather than a selector list. To change the verdict: - Show that the title calls this slot (call site or log), with the signature it uses. - Have the stub report the installed chunks through the callback the way the title expects, or keep `missing` until that's known. - Drop the added register/unregister test: `completed_installation_unregisters_progress_immediately` on `main` already covers it. - Keep the vtable comment columns aligned as in the rest of the table. CI: `check` failing. --- _Generated by [Claude Code](https://claude.ai/code)_
ashrafsdrop commented 2026-11-25 11:05:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-25T11:05:02Z.


Closing this pull request in accordance with maintainer feedback. Retaining missing::<13> (E_NOTIMPL) preserves call logging for any title attempting to query chunk availability until trace telemetry confirms the exact interface signature and expected callback data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7160563743 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1930#issuecomment-7160563743). Originally posted by [ashrafsdrop](https://github.com/ashrafsdrop) on 2026-11-25T11:05:02Z. --- Closing this pull request in accordance with maintainer feedback. Retaining `missing::<13>` (`E_NOTIMPL`) preserves call logging for any title attempting to query chunk availability until trace telemetry confirms the exact interface signature and expected callback data.
upstream-sync closed this pull request 2026-11-25 12:02:42 +00:00

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!1928
No description provided.