XPackage: wire XPackageEnumerateChunkAvailability #1437

Closed
ashrafsdrop wants to merge 2 commits from upstream-pr/1438 into main
ashrafsdrop commented 2026-11-24 17:59:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-24T17:59:28Z.


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.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6588155886 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1438). Originally posted by [ashrafsdrop](https://github.com/ashrafsdrop) on 2026-11-24T17:59:28Z. --- 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.
acetonahard-code commented 2026-11-24 21:28:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T21:11:06Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144590060 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1438#issuecomment-7144590060). Originally posted by [acetonahard-code](https://github.com/acetonahard-code) on 2026-11-24T21:11:06Z. --- 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>
Marvisak commented 2026-11-25 01:08:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:40:16Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148754209 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1438#issuecomment-7148754209). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:40:16Z. --- 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

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