Skip to content

Add opt-in Linux/Proton helpers and cross-compile guide (secondary, no Windows impact) - #228

Open
luniiya wants to merge 2 commits into
fxceless:mainfrom
luniiya:linux-proton-helpers
Open

luniiya wants to merge 2 commits into
fxceless:mainfrom
luniiya:linux-proton-helpers

Conversation

@luniiya

@luniiya luniiya commented Nov 24, 2026

Copy link
Copy Markdown

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 test victory.exe under Steam Proton / vkd3d-proton.

Important: This is strictly secondary and does not aim to impact Windows work or default behavior in any way. Both switches are off by default; when unset, runtime behavior on Windows is completely unchanged.

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 where steam.exe swallows console output.
  • VICTORY_SKIP_TITLE_INT3=1 (crates/victory-loader/src/crash.rs): Optionally skips non-fatal int3 (0xcc) breakpoints inside title images (victory-image-*) by advancing Rip += 1 and logging a warning (cached in a OnceLock). Useful under Wine/Proton where non-fatal title asserts otherwise terminate via Breakpad.
  • docs/linux-proton.md: Concise instructions for cross-compiling victory.exe on Linux with cargo-xwin, running under Proton + vkd3d-proton (VKD3D_SHADER_CACHE_PATH, MESA_VK_WSI_PRESENT_MODE=fifo), and a bwrap /dev/dri bind-order note.

Testing

  • Cross-compiled victory.exe (--profile diag --features diagnostics --target x86_64-pc-windows-msvc) via cargo-xwin on Arch Linux with zero warnings/errors.
  • Tested on AMD Radeon RX 7800 XT (RADV / vkd3d-proton) under Proton Experimental: boots, reaches menus at 30 fps, plays intro video, and loads into the world.

@luniiya
luniiya marked this pull request as draft November 24, 2026 22:51
@luniiya
luniiya marked this pull request as ready for review November 24, 2026 22:52

@ErRusso ErRusso left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 743514c against 2119b0e.

The two switches are opt-in and reasonable:

  • VICTORY_LOG_FILE falls back to stderr if the file cannot be created and disables ANSI; Windows default behavior is unchanged.
  • VICTORY_SKIP_TITLE_INT3 is gated on the environment variable, checks the faulting byte and the title image, advances Rip, and logs. It is dangerous but explicitly opt-in.

Requesting changes for the guide:

  1. The launch command is wrong for a standalone victory.exe. Proton's proton run launches steam.exe; it does not run the executable you pass. Use proton runinprefix (with STEAM_COMPAT_DATA_PATH / STEAM_COMPAT_CLIENT_INSTALL_PATH) or the Proton wine binary directly, as the other Linux guides do.
  2. This PR adds docs/linux-proton.md, the same path as #41. Rename or coordinate; otherwise one will conflict.

No code issue in the two switches.

@luniiya

luniiya commented Nov 24, 2026

Copy link
Copy Markdown
Author

Thanks for the review @ErRusso! Addressed both points in df04d39:

  1. Updated the launch command to use proton runinprefix (with STEAM_COMPAT_DATA_PATH / STEAM_COMPAT_CLIENT_INSTALL_PATH) or Proton's wine64 binary directly.
  2. Renamed docs/linux-proton.md to docs/linux-cross-compile-proton.md so it won't conflict with docs: what a Linux/Proton run needs, and where its frame goes on RADV #41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants