Add opt-in Linux/Proton helpers and cross-compile guide (secondary, no Windows impact) #228
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/228"
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 fxceless/victory-fork. Originally posted by luniiya on 2026-11-24T22:49:31Z.
Summary
Adds two strictly opt-in environment switches and a short guide (
docs/linux-proton.md) for contributors who are on Linux and want to cross-compile and testvictory.exeunder Steam Proton / vkd3d-proton.Changes
VICTORY_LOG_FILE=<path>(crates/victory-core/src/logging.rs): Optionally writes tracing logs to a file (with ANSI disabled) instead of stderr. Useful under Proton wheresteam.exeswallows console output.VICTORY_SKIP_TITLE_INT3=1(crates/victory-loader/src/crash.rs): Optionally skips non-fatalint3(0xcc) breakpoints inside title images (victory-image-*) by advancingRip += 1and logging a warning (cached in aOnceLock). Useful under Wine/Proton where non-fatal title asserts otherwise terminate via Breakpad.docs/linux-proton.md: Concise instructions for cross-compilingvictory.exeon Linux withcargo-xwin, running under Proton + vkd3d-proton (VKD3D_SHADER_CACHE_PATH,MESA_VK_WSI_PRESENT_MODE=fifo), and abwrap/dev/dribind-order note.Testing
victory.exe(--profile diag --features diagnostics --target x86_64-pc-windows-msvc) viacargo-xwinon Arch Linux with zero warnings/errors.Imported from fxceless/victory-fork. Originally posted by ErRusso on 2026-11-24T23:44:03Z.
Review: CHANGES_REQUESTED
Reviewed at
743514cagainst2119b0e.The two switches are opt-in and reasonable:
VICTORY_LOG_FILEfalls back to stderr if the file cannot be created and disables ANSI; Windows default behavior is unchanged.VICTORY_SKIP_TITLE_INT3is gated on the environment variable, checks the faulting byte and the title image, advancesRip, and logs. It is dangerous but explicitly opt-in.Requesting changes for the guide:
victory.exe. Proton'sproton runlaunchessteam.exe; it does not run the executable you pass. Useproton runinprefix(withSTEAM_COMPAT_DATA_PATH/STEAM_COMPAT_CLIENT_INSTALL_PATH) or the Protonwinebinary directly, as the other Linux guides do.docs/linux-proton.md, the same path as #41. Rename or coordinate; otherwise one will conflict.No code issue in the two switches.
Imported from fxceless/victory-fork. Originally posted by luniiya on 2026-11-24T23:51:14Z.
Thanks for the review @ErRusso! Addressed both points in
df04d39:proton runinprefix(withSTEAM_COMPAT_DATA_PATH/STEAM_COMPAT_CLIENT_INSTALL_PATH) or Proton'swine64binary directly.docs/linux-proton.mdtodocs/linux-cross-compile-proton.mdso it won't conflict with #41.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.