dotfiles/.config/scripts/steam/prefixhelper.sh

27 lines
535 B
Bash
Executable File

#!/bin/sh
steamdir="$HOME/.local/share/Steam"
steamapps="$steamdir/steamapps"
common="$steamapps/common"
compatdata="$steamapps/compatdata"
id="1611740"
proton_version="Proton 6.3"
if [ ! -e "$compatdata/$id/pfx" ]; then
echo "Prefix not found."
exit
fi
if [ ! -e "$common/$proton_version/proton" ]; then
echo "Proton not found."
exit
fi
echo "$PWD/$1"
STEAM_COMPAT_DATA_PATH="$compatdata/$id" \
STEAM_COMPAT_CLIENT_INSTALL_PATH="$steamdir" \
WINEPREFIX="$compatdata/$id/pfx" \
"$common/$proton_version/proton" run "$PWD/$1"