HLE: fix self-closing XML element body parsing in runtime.rs and add unit tests #1028
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#1028
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 15:11 UTC · original
Summary
Fixes a manifest XML parsing bug in
crates/victory-hle/src/runtime.rsand expands deterministic synthetic unit tests acrossruntime.rs(1 -> 15 tests) andcrates/victory-hle/src/modules/d3d12x.rs(1 -> 6 tests).Because external PR creation is currently restricted (
collaborators_only), the CI-green branch is ready on my fork for cherry-pick / review:geiyiliyabumo/VIctory@test/hle-runtime-d3d12xgeiyiliyabumo/VIctory@a4a94d7(based onmainffe310e)Changes
crates/victory-hle/src/runtime.rs:elementsparser previously attributed trailing text after a self-closing element (<Flag/>text) to that element; it now records an empty body as documented.saves(), and image registry lifecycle.crates/victory-hle/src/modules/d3d12x.rs:d3d12_xs.dllserving, export set +Provenance::Hleresolution,device::IIDexport pointer, andD3D12XboxCreateDevicenull-argE_INVALIDARGrejection.Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --check: PASScargo xtask policy: PASS (154 files ok)cargo clippy -p victory-hle --all-targets --locked -- -D warnings(default +--features diagnostics): PASS (0 warnings)cargo test -p victory-hle --locked -- runtime::(15/15 PASS) &-- d3d12x::(6/6 PASS)AI-assisted; synthetic tests only, no game files.
@Marvisak on GitHub · 2026-11-25 06:52 UTC · original · edited 2026-11-25 09:57 UTC
Automated triage for the maintainers.
Confirmed on current
main(940d32f): incrates/victory-hle/src/runtime.rs,elementstakesfield_text(rest)as the body of every element, including a self-closing one (closed). So the text after<Flag/>is recorded as that element's body before the path is popped. The fix and the addedruntime.rs/d3d12x.rstests are now open as PR #1196, so review can continue there; it may need a rebase onto currentmain.Generated by Claude Code
@StExpeditus on GitHub · 2026-11-25 09:09 UTC · original
Validated the fork branch on Windows 11 Pro 26200 (Intel Core i5-14600K, Rust 1.98.1 MSVC), commit
00d5c62:cargo test -p victory-hle --locked --no-fail-fast-> 162 passed, 0 failed, 0 ignored. Synthetic tests only, no game files.