-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrunsven.sh
More file actions
29 lines (22 loc) · 688 Bytes
/
Copy pathrunsven.sh
File metadata and controls
29 lines (22 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
# If your Steam library is somewhere else, correct this path.
export SVEN_ROOT="."
# SvenBXT path (you can correct this path too)
export SVENBXT="$SVEN_ROOT/libSvenBXT.so"
# Check that the Sven Co-op folder exists.
if [ ! -d "$SVEN_ROOT" ]; then
echo "Sven Co-op folder does not exist at $SVEN_ROOT"
exit 1
fi
# Check that SvenBXT exists.
if [ ! -f "$SVENBXT" ]; then
echo "SvenBXT does not exist at $SVENBXT"
exit 1
fi
export LD_PRELOAD="$LD_PRELOAD:$SVENBXT"
# Run Sven Co-op.
export LD_LIBRARY_PATH="$SVEN_ROOT:$LD_LIBRARY_PATH"
export SteamEnv=1
cd "$SVEN_ROOT" || exit 1
exec ./svencoop_linux -steam "$@"