HLE: return NOT_SUPPORTED early for null out in QueryApiImpl without marking area missing #1199
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1199"
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:24:12Z.
Summary
Closes #1029
Full verification details and change notes are documented in #1029 (commit
8466edd, 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 DenRakEiw on 2026-11-24T16:27:16Z.
Review: APPROVED
Tested head
8466edd(fast-forward onmainffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC):cargo test -p victory-hle: 107 passed, 0 failed (plusno_dll_planting: 1 passed)cargo clippy -p victory-hle --all-targets: 0 warningscargo xtask policy: okClean null-
outvalidation inQueryApiImpland expandedxgameruntimetest coverage. Approving.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:16Z.
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-hlepasses, 108 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
[PR #1199] HLE: reject null out in QueryApiImpl before lookup and add xgameruntime unit teststo [PR #1199] HLE: return NOT_SUPPORTED early for null out in QueryApiImpl without marking area missingImported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:19:47Z.
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 nulloutreturnsNOT_SUPPORTEDbefore 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 throughLoadLibraryExA/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
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T01:45:45Z.
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.
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.