Runtime: declare title-facing functions extern "win64" #524
No reviewers
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!524
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/524/head"
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?
@spidercraft on GitHub · 2026-11-24 04:27 UTC · original
spidercraft:win64-abi→main· +904 −812 · 48 files · 2 commits · closed without mergingWhat
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
@jeremygold02 on GitHub · 2026-11-24 17:43 UTC · original
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.
@Marvisak on GitHub · 2026-11-25 00:03 UTC · original
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