HLE: implement remaining XNetworking UDP port-change and UTF-16 security slots #851
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?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T12:27:46Z.
Summary
Implements the 5 remaining
missing::<N>vtable slots (0x30,0x38,0x58,0x60,0x68) incrates/victory-hle/src/modules/xnetworking.rsfor the offline XboxXNetworkingservice, plus 4 deterministic unit 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@feat/xnetworking-udp-and-utf16-slotsgeiyiliyabumo/VIctory@36ae257(based onmainffe310e)Changes (
crates/victory-hle/src/modules/xnetworking.rs)0x30/0x38):0x30(XNetworkingRegisterPreferredLocalUdpMultiplayerPortChanged) toregister(put(out, token())) and0x38(XNetworkingUnregisterPreferredLocalUdpMultiplayerPortChanged) tounregister(true), matching0x80/0x88since neither hint nor port changes offline.0x58/0x60/0x68):static SECURITY_UTF16: u8 = 0;identity tag andwide(*const u16)helper (matchingnet.rs/files.rs/dstorage.rs).0x58(security_info_utf16_async),0x60(security_info_utf16_size), and0x68(security_info_utf16_result), mirroring the ANSI trio (0x40/0x48/0x50) and completing immediately withUNREACHABLE.xnetworking):a_port_change_callback_registers_but_never_runsutf16_security_information_is_unreachable_offlinea_null_utf16_url_completes_like_an_empty_oneutf16_and_ansi_results_are_not_interchangeable(verifiesSECURITY_UTF16vsSECURITYtag isolation viaxasync::finished_with)Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --check crates/victory-hle/src/modules/xnetworking.rs: PASScargo xtask policy: PASS (154 files ok)cargo clippy --workspace --all-targets --locked -- -D warnings(default +--features diagnostics): PASS (0 warnings)cargo test -p victory-hle --locked -- xnetworking: 5/5 PASScargo test --workspace --locked: PASS (all workspace crates green)AI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:55:26Z.
Automated triage for the maintainers.
This is already on
main: PR #1248 ("XNetworking: wire UDP port change callbacks and UTF-16 security queries", merged 2026-11-25) filled these slots. Incrates/victory-hle/src/modules/xnetworking.rsthe vtable now hasregisterat0x30,security_info_utf16_asyncat0x58and the UTF-16 result slots after it, with tests of their own.Proposed for closing as fixed in
main. It will be closed in 48 hours unless you reply (for example, if something in your branch is still missing frommain) or a maintainer removes thetriage: proposed closelabel.Generated by Claude Code