Skip to content

Commit

Permalink
scripts: flatpak: check .local directory for steam library
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Feb 5, 2023
1 parent 30b6980 commit db40812
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions scripts/flatpak/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
echo "Xash3D FWGS installed as Flatpak."

# 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
echo "Detected Half-Life installation in $HALFLIFESTEAMDIR, using as RoDir"
export XASH3D_RODIR=$HALFLIFESTEAMDIR
fi
for i in $HALFLIFESTEAMDIRS; do
# echo $i
if [ -d "$i" ]; then
echo "Detected Half-Life installation in $i, using as RoDir"
export XASH3D_RODIR=$HALFLIFESTEAMDIR
break
fi
done

XASHDATADIR="$HOME/.xash/"

Expand Down

0 comments on commit db40812

Please sign in to comment.