HLE: implement IUnknown::QueryInterface and unit tests for xgame objects #1174

Open
github-bot wants to merge 1 commit from github-bot/gh-1174 into main AGit
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-24 16:19 UTC · original
geiyiliyabumo:feat/xgame-missing-slots → main · +170 −19 · 1 files · 1 commits · open

Summary

Closes #901

Full verification details and change notes are documented in #901 (commit 299bc17, based on main ffe310e).

 crates/victory-hle/src/modules/xgame.rs | 189 ++++++++++++++++++++++++++++----
 1 file changed, 170 insertions(+), 19 deletions(-)

Verification (Windows 11 x64 MSVC)

  • rustfmt --edition 2024 --check on edited files: PASS
  • cargo xtask policy: PASS (zero game files/data)
  • cargo clippy --all-targets --locked -- -D warnings (default + --features diagnostics where applicable): PASS
  • Targeted & crate unit/GPU tests: PASS

AI-assisted; synthetic tests only, no game files.

**@⁠geiyiliyabumo** on GitHub · 2026-11-24 16:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/1174) `geiyiliyabumo:feat/xgame-missing-slots` → `main` · +170 −19 · 1 files · 1 commits · open ### Summary Closes #901 Full verification details and change notes are documented in #901 (commit `299bc17`, based on `main` `ffe310e`). ```text crates/victory-hle/src/modules/xgame.rs | 189 ++++++++++++++++++++++++++++---- 1 file changed, 170 insertions(+), 19 deletions(-) ``` ### Verification (Windows 11 x64 MSVC) - `rustfmt --edition 2024 --check` on edited files: **PASS** - `cargo xtask policy`: **PASS** (zero game files/data) - `cargo clippy --all-targets --locked -- -D warnings` (default + `--features diagnostics` where applicable): **PASS** - Targeted & crate unit/GPU tests: **PASS** *AI-assisted; synthetic tests only, no game files.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:22:23 +00:00
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 18:00 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 299bc17: cargo test -p victory-hle passes, 99 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 18:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/1174#issuecomment-7140029558) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 299bc17: `cargo test -p victory-hle` passes, 99 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:17 UTC · original · edited 2026-11-25 02:24 UTC

Automated triage for the maintainers.

Thanks for the rebase. query_interface in crates/victory-hle/src/modules/xgame.rs follows the standard IUnknown contract: IUnknown and each object's own IID give S_OK, anything else gives E_NOINTERFACE, and a null out or iid gives E_POINTER. It replaces the missing::<0> stubs. Two things keep it from being a merge candidate:

  • Nothing shows that the title calls QueryInterface on these four objects. A run log with the method not implemented warning for slot 0x0 of one of them would show that this fixes a real call. Without it, the change is speculative.
  • The diff also reformats unrelated code (launch_new_game and the a_relaunch_keeps_our_options arrays). Please drop that, so the PR only touches what it changes.

The extra tests for title_id, invites and events assert what main already does, which is fine to keep. CI is passing.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/1174#issuecomment-7149404796) · edited 2026-11-25 02:24 UTC <!-- victory-triage v1 head=e85ef4f98887729ef165fd0371d0353e7931d0b5 verdict=needs-work at=2026-11-25T02:20:29Z --> Automated triage for the maintainers. Thanks for the rebase. `query_interface` in `crates/victory-hle/src/modules/xgame.rs` follows the standard IUnknown contract: `IUnknown` and each object's own IID give `S_OK`, anything else gives `E_NOINTERFACE`, and a null `out` or `iid` gives `E_POINTER`. It replaces the `missing::<0>` stubs. Two things keep it from being a merge candidate: - Nothing shows that the title calls `QueryInterface` on these four objects. A run log with the `method not implemented` warning for slot 0x0 of one of them would show that this fixes a real call. Without it, the change is speculative. - The diff also reformats unrelated code (`launch_new_game` and the `a_relaunch_keeps_our_options` arrays). Please drop that, so the PR only touches what it changes. The extra tests for `title_id`, invites and events assert what main already does, which is fine to keep. CI is passing. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-25 02:07 UTC · original

Rebased cleanly onto \main\ (\ccfb029). \cargo test -p victory-hle --locked, \cargo clippy -p victory-hle --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.

**@⁠geiyiliyabumo** on GitHub · 2026-11-25 02:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/1174#issuecomment-7150346637) Rebased cleanly onto \main\ (\ccfb029\). \cargo test -p victory-hle --locked\, \cargo clippy -p victory-hle --all-targets --locked -- -D warnings\, and \cargo xtask policy\ all pass.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1174/head:github-bot/gh-1174'
git switch 'github-bot/gh-1174'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1174'
git switch 'github-bot/gh-1174'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1174'
git switch 'github-bot/gh-1174'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1174'
git switch 'main'
git merge --squash 'github-bot/gh-1174'
git switch 'main'
git merge --ff-only 'github-bot/gh-1174'
git switch 'main'
git merge 'github-bot/gh-1174'
git push origin 'main'
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!1174
No description provided.