Runtime: declare title-facing functions extern "win64" #524
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/524"
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 spidercraft on 2026-11-24T04:27:22Z.
What
Title code calls our exports, and is called by us, with the Windows x64 convention.
extern "system"means that only on Windows: on Linux it is SysV, so a native Linux runtime would get the title's arguments in the wrong registers. Every title-facing function (808) is nowextern "win64", which is the same convention on every x86-64 host, so nothing changes on Windows.Callbacks we hand to the host's own APIs stay
"system": the crash reporter's exception handlers, the write-watch handler, window and dialog procedures,EnumWindows, our TLS callback, the probe test'sCreateThreadstart routine. The title fixture keeps"system"(it is only built as a Windows PE). The doc comment inmodules/mod.rsstates the rule.Builds on #523 (its one commit is included; review the second).
Tested
cargo check --workspace --all-targets --all-features --target x86_64-pc-windows-msvc: no diagnostics (the type checker flagged every host callback; those are the ones kept as"system").cargo test --workspacepasses, 162 passed, 13 ignored.cargo xtask policyok.🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T12:44:27Z.
Review: COMMENTED
Test-merge with current main (
ffe310e) conflicts — needs a rebase. Main moved recently (PR #566 waterfall loops touchedlower.rs/resource.rs/valu_tests.rs), so shader PRs opened before it need rebasing. I'll re-review once it merges cleanly.Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T17:43:08Z.
Verification ran against PR head
53282a65ad88ff5e826585a3340ebaf806f41ca0; the PR was open at refresh.cargo test -j 1 -p victory-loader --test load_probemaps_a_title_dll_the_title_loads_itselfandloads_binds_and_calls_probe. The probe exercises Win64 calls into a synthetic stand-in DLL and checks HLE, host, title-DLL and delay-loaded imports, plus thread attach/detach behavior.#![cfg(windows)], so it does not validate the Linux-host x86_64 ABI distinction betweensystemandwin64. No Linux cross-target check was available for this run.This verification was AI-assisted.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:03:41Z.
Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken).
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed