diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-26 16:11:32 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-26 16:11:32 -0500 |
| commit | fee07ff779746e6410969d643217ac92028b105a (patch) | |
| tree | 19101f2d18bf165352712f9172e57dd3f3204dfc /scripts/play-linux.sh | |
| parent | 867b18568062ebb0fcafaa5e1fe468d32e7bc45d (diff) | |
d3d12: Leonida's D3D12 runtime under its own name
What changed:
- victory/ is now d3d12/;
- its crates are leonida-* (leonida_* code paths);
- the program is leonida.exe;
- settings are LEONIDA_*, and the older VICTORY_* names still work through apps/leonida/src/leonida.rs;
- the config file is leonida.toml;
- log names and user-facing text say Leonida.
What did not change: lines that credit upstream projects or people, URLs, copyright notices and the
GPL-3.0 LICENSE. d3d12/README.md opens with a Leonida section that says the runtime grew from
Marvisak/VIctory through trustno1-coder/VIctory-NVIDIA. The rest of that README is labelled as
trustno1-coder's.
The launchers (scripts/play-d3d12.ps1, scripts/play-linux.sh), docs/linux.md and
scripts/sync_victory.py (prefix d3d12) follow the move. Future upstream merges will need a
mapping from upstream's names onto these.
Builds with `cargo build --profile diag -p leonida --features diagnostics`. The settings alias
tests pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/play-linux.sh')
| -rwxr-xr-x | scripts/play-linux.sh | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/scripts/play-linux.sh b/scripts/play-linux.sh index a2ce8afba..e7d48d78e 100755 --- a/scripts/play-linux.sh +++ b/scripts/play-linux.sh | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # Starts Leonida's D3D12 runtime (victory/, a Windows program) on Linux under Wine, with the VKD3D-Proton that comes in | 2 | # Starts Leonida's D3D12 runtime (d3d12/, a Windows program) on Linux under Wine, with the VKD3D-Proton that comes in |
| 3 | # the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside this script), so nothing else needs to be | 3 | # the package (scripts/fetch_vkd3d_proton.py puts it in vkd3d-proton/ beside this script), so nothing else needs to be |
| 4 | # downloaded for Direct3D 12. Wine itself and a Vulkan driver (Mesa or NVIDIA's) are the system's. | 4 | # downloaded for Direct3D 12. Wine itself and a Vulkan driver (Mesa or NVIDIA's) are the system's. |
| 5 | # | 5 | # |
| @@ -7,7 +7,7 @@ | |||
| 7 | # | 7 | # |
| 8 | # Leonida keeps its own Wine prefix (LEONIDA_WINEPREFIX, default ~/.local/share/leonida/prefix): the bundled | 8 | # Leonida keeps its own Wine prefix (LEONIDA_WINEPREFIX, default ~/.local/share/leonida/prefix): the bundled |
| 9 | # d3d12.dll and d3d12core.dll are installed there and preferred over Wine's (WINEDLLOVERRIDES), so no other prefix | 9 | # d3d12.dll and d3d12core.dll are installed there and preferred over Wine's (WINEDLLOVERRIDES), so no other prefix |
| 10 | # is changed. VICTORY_* variables already set win over the defaults below. | 10 | # is changed. LEONIDA_* variables already set win over the defaults below. |
| 11 | set -eu | 11 | set -eu |
| 12 | 12 | ||
| 13 | if [ $# -lt 1 ]; then | 13 | if [ $# -lt 1 ]; then |
| @@ -21,9 +21,9 @@ if [ "${1:-}" = "--series-x" ]; then console=series-x; fi | |||
| 21 | [ -f "$game_exe" ] || { echo "No $game_exe" >&2; exit 1; } | 21 | [ -f "$game_exe" ] || { echo "No $game_exe" >&2; exit 1; } |
| 22 | 22 | ||
| 23 | here=$(cd "$(dirname "$0")" && pwd) | 23 | here=$(cd "$(dirname "$0")" && pwd) |
| 24 | victory=${LEONIDA_VICTORY:-$here/leonida.exe} | 24 | runtime=${LEONIDA_RUNTIME:-$here/leonida.exe} |
| 25 | vkd3d=${LEONIDA_VKD3D:-$here/vkd3d-proton} | 25 | vkd3d=${LEONIDA_VKD3D:-$here/vkd3d-proton} |
| 26 | [ -f "$victory" ] || { echo "No $victory (the Windows build of victory/)" >&2; exit 1; } | 26 | [ -f "$runtime" ] || { echo "No $runtime (the Windows build of d3d12/)" >&2; exit 1; } |
| 27 | for dll in d3d12.dll d3d12core.dll; do | 27 | for dll in d3d12.dll d3d12core.dll; do |
| 28 | [ -f "$vkd3d/$dll" ] || { echo "No $vkd3d/$dll: run scripts/fetch_vkd3d_proton.py when packaging" >&2; exit 1; } | 28 | [ -f "$vkd3d/$dll" ] || { echo "No $vkd3d/$dll: run scripts/fetch_vkd3d_proton.py when packaging" >&2; exit 1; } |
| 29 | done | 29 | done |
| @@ -45,27 +45,27 @@ done | |||
| 45 | export WINEDLLOVERRIDES="d3d12,d3d12core=n${WINEDLLOVERRIDES:+;$WINEDLLOVERRIDES}" | 45 | export WINEDLLOVERRIDES="d3d12,d3d12core=n${WINEDLLOVERRIDES:+;$WINEDLLOVERRIDES}" |
| 46 | 46 | ||
| 47 | # Where the title's files are, and where the caches and saves go. | 47 | # Where the title's files are, and where the caches and saves go. |
| 48 | export VICTORY_GAME_DIR=${VICTORY_GAME_DIR:-$(cd "$(dirname "$game_exe")" && pwd)} | 48 | export LEONIDA_GAME_DIR=${LEONIDA_GAME_DIR:-$(cd "$(dirname "$game_exe")" && pwd)} |
| 49 | export VICTORY_CACHE_DIR=${VICTORY_CACHE_DIR:-$data/cache} | 49 | export LEONIDA_CACHE_DIR=${LEONIDA_CACHE_DIR:-$data/cache} |
| 50 | export VICTORY_DATA_DIR=${VICTORY_DATA_DIR:-$data/data} | 50 | export LEONIDA_DATA_DIR=${LEONIDA_DATA_DIR:-$data/data} |
| 51 | mkdir -p "$VICTORY_CACHE_DIR" "$VICTORY_DATA_DIR" | 51 | mkdir -p "$LEONIDA_CACHE_DIR" "$LEONIDA_DATA_DIR" |
| 52 | 52 | ||
| 53 | # The settings scripts/play-nvidia.ps1 measured (victory/README.md), as defaults. | 53 | # The settings scripts/play-nvidia.ps1 measured (d3d12/README.md), as defaults. |
| 54 | set_default() { eval "[ -n \"\${$1:-}\" ] || export $1=\"$2\""; } | 54 | set_default() { eval "[ -n \"\${$1:-}\" ] || export $1=\"$2\""; } |
| 55 | set_default VICTORY_TEXTURE_NO_WAIT 1 | 55 | set_default LEONIDA_TEXTURE_NO_WAIT 1 |
| 56 | set_default VICTORY_RELAY 2 | 56 | set_default LEONIDA_RELAY 2 |
| 57 | set_default VICTORY_CARD_STEPS 2 | 57 | set_default LEONIDA_CARD_STEPS 2 |
| 58 | set_default VICTORY_DYNAMIC_SLOTS 524288 | 58 | set_default LEONIDA_DYNAMIC_SLOTS 524288 |
| 59 | set_default VICTORY_PIPELINE_WAIT_MS 10000 | 59 | set_default LEONIDA_PIPELINE_WAIT_MS 10000 |
| 60 | set_default VICTORY_RENDER_SCALE 0.5 | 60 | set_default LEONIDA_RENDER_SCALE 0.5 |
| 61 | set_default VICTORY_OWN_UPSCALER 1 | 61 | set_default LEONIDA_OWN_UPSCALER 1 |
| 62 | set_default VICTORY_BVH_MISS 1 | 62 | set_default LEONIDA_BVH_MISS 1 |
| 63 | set_default VICTORY_CARD_BUFFERS_MIN_MB 1 | 63 | set_default LEONIDA_CARD_BUFFERS_MIN_MB 1 |
| 64 | set_default VICTORY_CARD_BUFFERS_MB 1536 | 64 | set_default LEONIDA_CARD_BUFFERS_MB 1536 |
| 65 | set_default VICTORY_COMPOSE 1 | 65 | set_default LEONIDA_COMPOSE 1 |
| 66 | set_default VICTORY_NAN_SCRUB 1 | 66 | set_default LEONIDA_NAN_SCRUB 1 |
| 67 | set_default VICTORY_AMBIENT_AIR 1.5 | 67 | set_default LEONIDA_AMBIENT_AIR 1.5 |
| 68 | set_default VICTORY_AMBIENT_MOST 2 | 68 | set_default LEONIDA_AMBIENT_MOST 2 |
| 69 | 69 | ||
| 70 | echo "Leonida: $console under Wine with the bundled VKD3D-Proton ($(head -n 1 "$vkd3d/SOURCE.txt" 2>/dev/null || echo bundled))" | 70 | echo "Leonida: $console under Wine with the bundled VKD3D-Proton ($(head -n 1 "$vkd3d/SOURCE.txt" 2>/dev/null || echo bundled))" |
| 71 | exec wine "$victory" run "$game_exe" --execute --console "$console" | 71 | exec wine "$runtime" run "$game_exe" --execute --console "$console" |