upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/play-linux.sh
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-26 16:11:32 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-26 16:11:32 -0500
commitfee07ff779746e6410969d643217ac92028b105a (patch)
tree19101f2d18bf165352712f9172e57dd3f3204dfc /scripts/play-linux.sh
parent867b18568062ebb0fcafaa5e1fe468d32e7bc45d (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-xscripts/play-linux.sh48
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.
11set -eu 11set -eu
12 12
13if [ $# -lt 1 ]; then 13if [ $# -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
23here=$(cd "$(dirname "$0")" && pwd) 23here=$(cd "$(dirname "$0")" && pwd)
24victory=${LEONIDA_VICTORY:-$here/leonida.exe} 24runtime=${LEONIDA_RUNTIME:-$here/leonida.exe}
25vkd3d=${LEONIDA_VKD3D:-$here/vkd3d-proton} 25vkd3d=${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; }
27for dll in d3d12.dll d3d12core.dll; do 27for 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; }
29done 29done
@@ -45,27 +45,27 @@ done
45export WINEDLLOVERRIDES="d3d12,d3d12core=n${WINEDLLOVERRIDES:+;$WINEDLLOVERRIDES}" 45export 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.
48export VICTORY_GAME_DIR=${VICTORY_GAME_DIR:-$(cd "$(dirname "$game_exe")" && pwd)} 48export LEONIDA_GAME_DIR=${LEONIDA_GAME_DIR:-$(cd "$(dirname "$game_exe")" && pwd)}
49export VICTORY_CACHE_DIR=${VICTORY_CACHE_DIR:-$data/cache} 49export LEONIDA_CACHE_DIR=${LEONIDA_CACHE_DIR:-$data/cache}
50export VICTORY_DATA_DIR=${VICTORY_DATA_DIR:-$data/data} 50export LEONIDA_DATA_DIR=${LEONIDA_DATA_DIR:-$data/data}
51mkdir -p "$VICTORY_CACHE_DIR" "$VICTORY_DATA_DIR" 51mkdir -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.
54set_default() { eval "[ -n \"\${$1:-}\" ] || export $1=\"$2\""; } 54set_default() { eval "[ -n \"\${$1:-}\" ] || export $1=\"$2\""; }
55set_default VICTORY_TEXTURE_NO_WAIT 1 55set_default LEONIDA_TEXTURE_NO_WAIT 1
56set_default VICTORY_RELAY 2 56set_default LEONIDA_RELAY 2
57set_default VICTORY_CARD_STEPS 2 57set_default LEONIDA_CARD_STEPS 2
58set_default VICTORY_DYNAMIC_SLOTS 524288 58set_default LEONIDA_DYNAMIC_SLOTS 524288
59set_default VICTORY_PIPELINE_WAIT_MS 10000 59set_default LEONIDA_PIPELINE_WAIT_MS 10000
60set_default VICTORY_RENDER_SCALE 0.5 60set_default LEONIDA_RENDER_SCALE 0.5
61set_default VICTORY_OWN_UPSCALER 1 61set_default LEONIDA_OWN_UPSCALER 1
62set_default VICTORY_BVH_MISS 1 62set_default LEONIDA_BVH_MISS 1
63set_default VICTORY_CARD_BUFFERS_MIN_MB 1 63set_default LEONIDA_CARD_BUFFERS_MIN_MB 1
64set_default VICTORY_CARD_BUFFERS_MB 1536 64set_default LEONIDA_CARD_BUFFERS_MB 1536
65set_default VICTORY_COMPOSE 1 65set_default LEONIDA_COMPOSE 1
66set_default VICTORY_NAN_SCRUB 1 66set_default LEONIDA_NAN_SCRUB 1
67set_default VICTORY_AMBIENT_AIR 1.5 67set_default LEONIDA_AMBIENT_AIR 1.5
68set_default VICTORY_AMBIENT_MOST 2 68set_default LEONIDA_AMBIENT_MOST 2
69 69
70echo "Leonida: $console under Wine with the bundled VKD3D-Proton ($(head -n 1 "$vkd3d/SOURCE.txt" 2>/dev/null || echo bundled))" 70echo "Leonida: $console under Wine with the bundled VKD3D-Proton ($(head -n 1 "$vkd3d/SOURCE.txt" 2>/dev/null || echo bundled))"
71exec wine "$victory" run "$game_exe" --execute --console "$console" 71exec wine "$runtime" run "$game_exe" --execute --console "$console"