HLE: implement IUnknown::QueryInterface and unit tests for xgame objects #1174
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T16:19:40Z.
Summary
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.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:48Z.
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).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:17:55Z.
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
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T02:07:33Z.
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.Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-27T13:56:17Z.
Independent CPU-only verification on Windows / Rust 1.100.0 / MSVC.
e85ef4f98887729ef165fd0371d0353e7931d0b5, merge baseccfb02996eac831853e8324156f123eeff083e9d.cargo test --locked -p victory-hle --lib -- modules::xgame::tests::query_interface_supports_unknown_and_each_own_interface --exact --test-threads=1 --quiettest result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 146 filtered out, exit 0.git grep -F -c modules::xgame::tests::query_interface_supports_unknown_and_each_own_interface ccfb0299 -- .→ exit 1 / 0 hits (test genuinely new).git diff --check ccfb0299 HEAD→ exit 0.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.