Browse Source

scripts: flatpak: check .local directory for steam library

pull/2/head
Alibek Omarov 2 years ago
parent
commit
a610b1545b
  1. 14
      scripts/flatpak/run.sh

14
scripts/flatpak/run.sh

@ -3,12 +3,16 @@
echo "Xash3D FWGS installed as Flatpak." echo "Xash3D FWGS installed as Flatpak."
# TODO: detect by libraryfolders.vdf and installed apps # TODO: detect by libraryfolders.vdf and installed apps
HALFLIFESTEAMDIR="$HOME/.steam/steam/steamapps/common/Half-Life" HALFLIFESTEAMDIRS="$HOME/.local/share/Steam/steamapps/common/Half-Life $HOME/.steam/steam/steamapps/common/Half-Life"
if [ -d "$HALFLIFESTEAMDIR" ]; then for i in $HALFLIFESTEAMDIRS; do
echo "Detected Half-Life installation in $HALFLIFESTEAMDIR, using as RoDir" # echo $i
export XASH3D_RODIR=$HALFLIFESTEAMDIR if [ -d "$i" ]; then
fi echo "Detected Half-Life installation in $i, using as RoDir"
export XASH3D_RODIR=$i
break
fi
done
XASHDATADIR="$HOME/.xash/" XASHDATADIR="$HOME/.xash/"

Loading…
Cancel
Save