HLE: implement IUnknown::QueryInterface and unit tests for xgame objects #1174
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1174
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1174"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@geiyiliyabumo on GitHub · 2026-11-24 16:19 UTC · original
geiyiliyabumo:feat/xgame-missing-slots→main· +170 −19 · 1 files · 1 commits · openSummary
Closes #901
Full verification details and change notes are documented in #901 (commit
299bc17, based onmainffe310e).Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --checkon edited files: PASScargo xtask policy: PASS (zero game files/data)cargo clippy --all-targets --locked -- -D warnings(default +--features diagnosticswhere applicable): PASSAI-assisted; synthetic tests only, no game files.
@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-hlepasses, 99 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@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_interfaceincrates/victory-hle/src/modules/xgame.rsfollows the standard IUnknown contract:IUnknownand each object's own IID giveS_OK, anything else givesE_NOINTERFACE, and a nulloutoriidgivesE_POINTER. It replaces themissing::<0>stubs. Two things keep it from being a merge candidate:QueryInterfaceon these four objects. A run log with themethod not implementedwarning for slot 0x0 of one of them would show that this fixes a real call. Without it, the change is speculative.launch_new_gameand thea_relaunch_keeps_our_optionsarrays). 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
@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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.