-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathlaunchwrapper-env
More file actions
executable file
·61 lines (47 loc) · 1.78 KB
/
Copy pathlaunchwrapper-env
File metadata and controls
executable file
·61 lines (47 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
set -e
# Run command in environment, but without wine
basedir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
# variables
source "$basedir/common.sh"
load-env
pushd "$basedir"
export WINEPREFIX="$(readlink -m "$wineprefix")"
export SteamGameId="$steam_game_id"
export SteamAppId="$steam_game_id"
export DXVK_HUD="$dxvk_hud"
export DXVK_CONFIG_FILE="$(readlink -f "$dxvk_config_file")"
export DXVK_STATE_CACHE_PATH="$(readlink -m "$dxvk_cache_dir")"
export STEAM_COMPAT_CLIENT_INSTALL_PATH="$steam_path"
# force large address aware
export WINE_LARGE_ADDRESS_AWARE=1
# esync and fsync have caused issues in the past
unset WINEESYNC WINEFSYNC
# ntsync seems to work, although it does not seem to have a statistically significant effect
export WINENTSYNC=1
# FA uses neither mshtml nor dotnet (mscoree). disable both and prevent wineboot from asking the user about them.
# additionally prevent winemenubuilder from accidentally creating shortcuts.
export WINEDLLOVERRIDES="mscoree=d;mshtml=d;winemenubuilder=d"
export proton_path="$(readlink -f "$proton_path")"
# curl is available in the steamrt container. use it even when aria2c may be
# available from the host to avoid dependency issues
export WINETRICKS_DOWNLOADER="curl"
pv_opts=()
if [[ -t 0 ]] && [[ -t 1 ]]; then
# enable tty
pv_opts+=(--tty)
fi
bind_paths=(
# need ourselves in the container
"$(readlink -f "$basedir")"
# need the game in the container
"$(readlink -f "$game_path")"
)
# probably want steam in the container as well
if [[ ! -z "$steam_path" ]]; then
bind_paths+=("$(readlink -f "$steam_path")")
fi
export PRESSURE_VESSEL_FILESYSTEMS_RW="$(IFS=':'; printf '%s' "${bind_paths[*]}")"
export use_wine_wow64
popd
exec "$basedir/steamrt/run" "${pv_opts[@]}" -- "$basedir/launchwrapper-srt" "$@"