XPackage: wire XPackageEnumerateChunkAvailability #1438

Closed
github-bot wants to merge 2 commits from gh-pr/1438/head into gh-pr/1438/base
Owner

@⁠ashrafsdrop on GitHub · 2026-11-24 17:59 UTC · original
ashrafsdrop:xpackage/chunk-availability → main · +88 −4 · 1 files · 2 commits · closed without merging

Summary
Resolves VIC-BT-036 from #1249:

  • Slot 13 (0x68) in xpackage.rs was stubbed with missing::<13> (E_NOTIMPL).
  • Implements enumerate_chunk_availability (XPackageEnumerateChunkAvailability), returning S_OK for our installed package identifier and NO_PACKAGE for other packages.
  • Adds unit tests in crates/victory-hle/src/modules/xpackage.rs verifying return codes for both our package and unknown packages.

Verification

  • cargo test -p victory-hle: 94 tests passed, 0 failed.
  • cargo clippy -p victory-hle --all-targets --all-features -- -D warnings: clean, 0 warnings.
  • cargo run -p xtask -- policy: 154 files ok.
**@⁠ashrafsdrop** on GitHub · 2026-11-24 17:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/1438) `ashrafsdrop:xpackage/chunk-availability` → `main` · +88 −4 · 1 files · 2 commits · closed without merging Summary Resolves VIC-BT-036 from #1249: - Slot 13 (0x68) in `xpackage.rs` was stubbed with `missing::<13>` (`E_NOTIMPL`). - Implements `enumerate_chunk_availability` (`XPackageEnumerateChunkAvailability`), returning `S_OK` for our installed package identifier and `NO_PACKAGE` for other packages. - Adds unit tests in `crates/victory-hle/src/modules/xpackage.rs` verifying return codes for both our package and unknown packages. Verification - `cargo test -p victory-hle`: 94 tests passed, 0 failed. - `cargo clippy -p victory-hle --all-targets --all-features -- -D warnings`: clean, 0 warnings. - `cargo run -p xtask -- policy`: 154 files ok.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:31:45 +00:00
github-bot closed this pull request 2026-11-26 04:31:45 +00:00
Author
Owner

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

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 95 0 0
  • 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 21:11 UTC · [original](https://github.com/Marvisak/VIctory/pull/1438#issuecomment-7144590060) 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 | 95 | 0 | 0 | - `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>
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:40 UTC · original

Automated triage for the maintainers. Closing because another open pull request covers the same change.

See #1274. Repeats its author's #1367 (slot 0x50, same as #1274) and adds a stub for slot 0x68 whose argument list does not match the public API (it takes a selector type, not a selector array) and which reports success without enumerating anything; no title calls it.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/1438#issuecomment-7148754209) Automated triage for the maintainers. Closing because another open pull request covers the same change. See #1274. Repeats its author's #1367 (slot 0x50, same as #1274) and adds a stub for slot 0x68 whose argument list does not match the public API (it takes a selector type, not a selector array) and which reports success without enumerating anything; no title calls it. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

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