[BUNDLE] HLE runtime APIs (XGameRuntime, XStore, XSystem, XPackage, XG, XUser): #335 #475 #446 #1199 #449 #939 #412 #674 #957 #648 #455 #370 #1167 #1368

Closed
MamaLeVrai wants to merge 27 commits from upstream-pr/1368 into main
MamaLeVrai commented 2026-11-24 17:38:04 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T17:38:04Z.


One PR in place of 13. The HLE PRs on the game runtime APIs: XGameRuntime string getters, XStore, XSystem, XPackage, XG texture helpers, XUser, XGame, XGameUI and XNetworking slots. Every head is merged unchanged onto main (ffe310e), and the result is built and tested together.

For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a [BUNDLE] PR. The re-verification commands are below, so one run covers all of it.

What is inside

PR Author Head Title
#335 marquezinii e3bef0898 XStore: a store id without an installed package is an invalid argument
#475 nathanbzrr 2c22e2b2d XStore: wire offline *Result slots and fix OOB XStoreShowProductPageUIResult slot
#446 enzoduarte1 881caef98 HLE: report required size on string getter buffer errors
#1199 geiyiliyabumo 8466edd7b HLE: reject null out in QueryApiImpl before lookup and add xgameruntime unit tests
#449 enzoduarte1 f625cc508 HLE: refuse a null AnalyticsInfo output pointer
#939 LouisRiverstone d4306f475 HLE: XSystemGetXboxLiveSandboxId refuses a buffer under 16 bytes
#412 enzoduarte1 d2c7d4a32 HLE: validate XPackage chunk selectors
#674 DenRakEiw b9e5f2e9f HLE (xg): validate null tiling output, slice bounds, and checked copy spans
#957 LouisRiverstone 246ecea96 HLE: test that XGSuggestSwizzleMode picks linear for a 1D texture
#648 LAKSHYA-cmd-tech 241b08f49 HLE: implement XUser maximum-users slot 0x30 (#348, #622)
#455 Quat3rnion eb8067f2e HLE: honor the requested executable on relaunch
#370 marquezinii 936e5e51c XGameUi: a text entry's limit is the console's
#1167 geiyiliyabumo 36ae257c9 HLE: implement remaining XNetworking UDP port-change and UTF-16 security slots

Changes made while bundling

No merge conflicts. One change of mine, in its own commit, because two of the PRs disagree: #446 makes the string getters report the required size on the insufficient-buffer branch (the two-call pattern of the real API), and the test #1199 adds, put_string_refuses_what_it_cannot_fit, asserts that no size is reported. Together that test fails. It now expects the size, NUL included (4 for "abc"). If you prefer the old behaviour, drop #446 from the bundle and restore that line.

Verification

Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):

Check Result
cargo clippy --workspace --all-targets --locked -- -D warnings clean
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings clean
cargo test --workspace --locked 370 passed, 0 failed, 6 ignored (main: 342 passed, 6 ignored)

The title was not run, so this says nothing about in-game effect. No game data is used or committed.

Re-verify in one go

git fetch https://github.com/MamaLeVrai/VIctory.git bundle/hle-runtime-api
git checkout FETCH_HEAD
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked

To confirm that no component PR moved since this was built, compare each Head above with gh pr view <n> --repo Marvisak/VIctory --json headRefOid. If one differs, the branch needs a rebuild: merge the new head in the same order.

If this lands

The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above.

AI-assisted (Claude Code); no game data.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6587783153 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1368). Originally posted by [MamaLeVrai](https://github.com/MamaLeVrai) on 2026-11-24T17:38:04Z. --- **One PR in place of 13.** The HLE PRs on the game runtime APIs: XGameRuntime string getters, XStore, XSystem, XPackage, XG texture helpers, XUser, XGame, XGameUI and XNetworking slots. Every head is merged unchanged onto `main` (`ffe310e`), and the result is built and tested together. > For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a `[BUNDLE]` PR. The re-verification commands are below, so one run covers all of it. ## What is inside | PR | Author | Head | Title | |---|---|---|---| | #335 | marquezinii | `e3bef0898` | XStore: a store id without an installed package is an invalid argument | | #475 | nathanbzrr | `2c22e2b2d` | XStore: wire offline *Result slots and fix OOB XStoreShowProductPageUIResult slot | | #446 | enzoduarte1 | `881caef98` | HLE: report required size on string getter buffer errors | | #1199 | geiyiliyabumo | `8466edd7b` | HLE: reject null out in QueryApiImpl before lookup and add xgameruntime unit tests | | #449 | enzoduarte1 | `f625cc508` | HLE: refuse a null AnalyticsInfo output pointer | | #939 | LouisRiverstone | `d4306f475` | HLE: XSystemGetXboxLiveSandboxId refuses a buffer under 16 bytes | | #412 | enzoduarte1 | `d2c7d4a32` | HLE: validate XPackage chunk selectors | | #674 | DenRakEiw | `b9e5f2e9f` | HLE (xg): validate null tiling output, slice bounds, and checked copy spans | | #957 | LouisRiverstone | `246ecea96` | HLE: test that XGSuggestSwizzleMode picks linear for a 1D texture | | #648 | LAKSHYA-cmd-tech | `241b08f49` | HLE: implement XUser maximum-users slot 0x30 (#348, #622) | | #455 | Quat3rnion | `eb8067f2e` | HLE: honor the requested executable on relaunch | | #370 | marquezinii | `936e5e51c` | XGameUi: a text entry's limit is the console's | | #1167 | geiyiliyabumo | `36ae257c9` | HLE: implement remaining XNetworking UDP port-change and UTF-16 security slots | ## Changes made while bundling No merge conflicts. One change of mine, in its own commit, because two of the PRs disagree: #446 makes the string getters report the required size on the insufficient-buffer branch (the two-call pattern of the real API), and the test #1199 adds, `put_string_refuses_what_it_cannot_fit`, asserts that no size is reported. Together that test fails. It now expects the size, NUL included (4 for `"abc"`). If you prefer the old behaviour, drop #446 from the bundle and restore that line. ## Verification Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain): | Check | Result | |---|---| | `cargo clippy --workspace --all-targets --locked -- -D warnings` | clean | | `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` | clean | | `cargo test --workspace --locked` | 370 passed, 0 failed, 6 ignored (`main`: 342 passed, 6 ignored) | The title was not run, so this says nothing about in-game effect. No game data is used or committed. ## Re-verify in one go ```powershell git fetch https://github.com/MamaLeVrai/VIctory.git bundle/hle-runtime-api git checkout FETCH_HEAD cargo clippy --workspace --all-targets --locked -- -D warnings cargo clippy --workspace --all-targets --all-features --locked -- -D warnings cargo test --workspace --locked ``` To confirm that no component PR moved since this was built, compare each `Head` above with `gh pr view <n> --repo Marvisak/VIctory --json headRefOid`. If one differs, the branch needs a rebuild: merge the new head in the same order. ## If this lands The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above. AI-assisted (Claude Code); no game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
copilot-pull-request-reviewer[bot commented 2026-11-24 18:05:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T17:38:17Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:Marvisak/VIctory:review:6044327536 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1368#pullrequestreview-6044327536). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/copilot-pull-request-reviewer%5Bbot%5D) on 2026-11-24T17:38:17Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
sinan-cmyk commented 2026-11-24 19:04:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by sinan-cmyk on 2026-11-24T18:45:24Z.


Runtime boot check on real hardware with a retail dump

Result: no difference from main in this test.

I merged head 152368e onto main ffe310e (clean merge), built it (release), and ran victory run <title exe> --execute with an empty data folder for 100 s, without any input. I compared the run with main built and run the same way.

main ffe310e this PR
Reaches the first-boot screens yes yes
Caption at 100 s (one sample) 30 fps, 12 draws/frame 30 fps, 12 draws/frame
Frames presented 2,048 2,048
crashes.log entries 0 0
Committed memory 11.1 GB 11.1 GB

Warnings: 7, the same kinds and counts as on main. 0 errors.

Limits. Without input, the title stays on the first-boot screens. This run does not exercise saves, the intro video, the start screen, loading or the world. It shows only that the change does not break startup or the first menus on this machine. I did not run the PR's tests.

Machine: Ryzen 7 7800X3D, RTX 4070 SUPER, Windows 11 25H2, game 1.0.2.1. AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7141107364 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1368#issuecomment-7141107364). Originally posted by [sinan-cmyk](https://github.com/sinan-cmyk) on 2026-11-24T18:45:24Z. --- ### Runtime boot check on real hardware with a retail dump **Result: no difference from `main` in this test.** I merged head 152368e onto `main` ffe310e (clean merge), built it (release), and ran `victory run <title exe> --execute` with an empty data folder for 100 s, without any input. I compared the run with `main` built and run the same way. | | `main` ffe310e | this PR | |---|---|---| | Reaches the first-boot screens | yes | yes | | Caption at 100 s (one sample) | 30 fps, 12 draws/frame | 30 fps, 12 draws/frame | | Frames presented | 2,048 | 2,048 | | `crashes.log` entries | 0 | 0 | | Committed memory | 11.1 GB | 11.1 GB | **Warnings:** 7, the same kinds and counts as on `main`. 0 errors. **Limits.** Without input, the title stays on the first-boot screens. This run does not exercise saves, the intro video, the start screen, loading or the world. It shows only that the change does not break startup or the first menus on this machine. I did not run the PR's tests. Machine: Ryzen 7 7800X3D, RTX 4070 SUPER, Windows 11 25H2, game 1.0.2.1. AI-assisted (Claude Code).
upstream-sync closed this pull request 2026-11-25 01:06:22 +00:00
Marvisak commented 2026-11-25 01:08:10 +00:00 (Migrated from github.com)

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


Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.

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:7148728729 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1368#issuecomment-7148728729). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:38:46Z. --- Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged. 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!1368
No description provided.