mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
scripts: flatpak: check .local directory for steam library
This commit is contained in:
parent
30b698067a
commit
a610b1545b
14
scripts/flatpak/run.sh
Normal file → Executable file
14
scripts/flatpak/run.sh
Normal file → Executable file
@ -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…
x
Reference in New Issue
Block a user