HLE: return NOT_SUPPORTED early for null out in QueryApiImpl without marking area missing #1199

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

@⁠geiyiliyabumo on GitHub · 2026-11-24 16:24 UTC · original
geiyiliyabumo:test/hle-xgameruntime → main · +18 −55 · 1 files · 1 commits · open

Summary

Closes #1029

Full verification details and change notes are documented in #1029 (commit 8466edd, based on main ffe310e).

 crates/victory-hle/src/modules/xgameruntime.rs | 265 ++++++++++++++++++++++++-
 1 file changed, 260 insertions(+), 5 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:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/1199) `geiyiliyabumo:test/hle-xgameruntime` → `main` · +18 −55 · 1 files · 1 commits · open ### Summary Closes #1029 Full verification details and change notes are documented in #1029 (commit `8466edd`, based on `main` `ffe310e`). ```text crates/victory-hle/src/modules/xgameruntime.rs | 265 ++++++++++++++++++++++++- 1 file changed, 260 insertions(+), 5 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:23: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 8466edd: cargo test -p victory-hle passes, 108 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/1199#issuecomment-7140016638) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 8466edd: `cargo test -p victory-hle` passes, 108 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:19 UTC · original · edited 2026-11-25 02:29 UTC

Automated triage for the maintainers.

Needs work (small). Thanks for the update. The change now does what we suggested. In QueryApiImpl (crates/victory-hle/src/modules/xgameruntime.rs), a null out returns NOT_SUPPORTED before the lookup, so an implemented pair is no longer logged or remembered as "runtime API area not implemented". The new test fails on main and passes here.

However, this head also deletes an existing, unrelated test from main: title_stub_loads_the_runtime_dynamically. It checks that the runtime's exports resolve through LoadLibraryExA/GetProcAddress, and that host DLLs still load from the host. That looks like a leftover from trimming the earlier tests. Please restore it and keep your new test next to it. The PR body also still points to #1029 and shows the old diffstat. A one-line description of the change would do. With the test restored, this would be a merge candidate.

CI: passing.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/1199#issuecomment-7149435908) · edited 2026-11-25 02:29 UTC <!-- victory-triage v1 head=6ebc0af9a1a65af3e1e17fe9da1a9b35ece4cb9c verdict=needs-work at=2026-11-25T02:20:29Z --> Automated triage for the maintainers. **Needs work (small).** Thanks for the update. The change now does what we suggested. In `QueryApiImpl` (`crates/victory-hle/src/modules/xgameruntime.rs`), a null `out` returns `NOT_SUPPORTED` before the lookup, so an implemented pair is no longer logged or remembered as "runtime API area not implemented". The new test fails on main and passes here. However, this head also deletes an existing, unrelated test from main: `title_stub_loads_the_runtime_dynamically`. It checks that the runtime's exports resolve through `LoadLibraryExA`/`GetProcAddress`, and that host DLLs still load from the host. That looks like a leftover from trimming the earlier tests. Please restore it and keep your new test next to it. The PR body also still points to #1029 and shows the old diffstat. A one-line description of the change would do. With the test restored, this would be a merge candidate. CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-25 01:45 UTC · original

Updated per triage feedback: kept \NOT_SUPPORTED\ as the return value for a null \out\ in \QueryApiImpl, returning early before logging or recording the API area as unimplemented, and trimmed the tests down to a single focused regression test covering the return value and missing-area cache. Rebased onto \main; \cargo test -p victory-hle --locked\ (145 passed, 0 failed), \cargo clippy -p victory-hle --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.

**@⁠geiyiliyabumo** on GitHub · 2026-11-25 01:45 UTC · [original](https://github.com/Marvisak/VIctory/pull/1199#issuecomment-7149926021) Updated per triage feedback: kept \NOT_SUPPORTED\ as the return value for a null \out\ in \QueryApiImpl\, returning early before logging or recording the API area as unimplemented, and trimmed the tests down to a single focused regression test covering the return value and missing-area cache. Rebased onto \main\; \cargo test -p victory-hle --locked\ (145 passed, 0 failed), \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/1199/head:github-bot/gh-1199'
git switch 'github-bot/gh-1199'

Merge

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