You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
556 B
21 lines
556 B
2 years ago
|
#!/bin/sh
|
||
|
|
||
|
echo "Xash3D FWGS installed as Flatpak."
|
||
|
|
||
|
# TODO: detect by libraryfolders.vdf and installed apps
|
||
|
HALFLIFESTEAMDIR="$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
|
||
|
|
||
|
XASHDATADIR="$HOME/.xash/"
|
||
|
|
||
|
mkdir -p $XASHDATADIR
|
||
|
export XASH3D_BASEDIR="$XASHDATADIR"
|
||
|
echo "Base directory is $XASH3D_BASEDIR"
|
||
|
|
||
|
export XASH3D_EXTRAS_PAK1=/app/share/xash3d/valve/extras.pk3
|
||
|
exec /app/lib32/xash3d/xash3d "$@"
|