summarylogtreecommitdiffstats
path: root/xash3d.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xash3d.sh')
-rw-r--r--xash3d.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/xash3d.sh b/xash3d.sh
new file mode 100644
index 000000000000..6683710fe571
--- /dev/null
+++ b/xash3d.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+. /etc/conf.d/xash3d
+
+DEFAULT_LIBPATH=/usr/lib
+
+if [ ! -d "$XASH3D_BASEDIR" ]; then
+ echo "$XASH3D_BASEDIR not found"
+ exit 1
+fi
+
+if [ ! -f "$XASH3D_BASEDIR/valve/dlls/hl_amd64.so" ]; then
+ ln -sr $DEFAULT_LIBPATH/valve/dlls/hl.so "$XASH3D_BASEDIR"/valve/dlls/hl_amd64.so
+ ln -sr $DEFAULT_LIBPATH/valve/cl_dlls/client.so "$XASH3D_BASEDIR"/valve/cl_dlls/client_amd64.so
+fi
+
+$DEFAULT_LIBPATH/xash3d/xash3d "$@"ยท