|
|
@ -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 |
|
|
|
|
|
|
|
echo "Detected Half-Life installation in $i, using as RoDir" |
|
|
|
|
|
|
|
export XASH3D_RODIR=$i |
|
|
|
|
|
|
|
break |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
XASHDATADIR="$HOME/.xash/" |
|
|
|
XASHDATADIR="$HOME/.xash/" |
|
|
|
|
|
|
|
|
|
|
|