summarylogtreecommitdiffstats
path: root/xash3d
blob: 74b721507fadd9f21b6ae5167e30f645a4d3f17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

if [ -z "$XASH3D_BASEDIR" ]; then
    if [ -n "$XDG_DATA_HOME" ]; then
        export XASH3D_BASEDIR="$XDG_DATA_HOME/xash3d/"
    else
        export XASH3D_BASEDIR="$HOME/.xash3d/"
    fi
fi
if [ ! -d "$XASH3D_BASEDIR" ]; then
    echo "$XASH3D_BASEDIR not found. Create a new one and put gamefiles into it"
    exit 1
fi

export XASH3D_RODIR="/opt/xash3d/"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${XASH3D_RODIR}:${XASH3D_BASEDIR}"

/opt/xash3d/xash3d "$@"