blob: ff756aade07d4539e666b8b1b8ac612cef42db36 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# Launch HL2 with hl2hake preloaded (through Steam's bundled 32-bit runtime).
# Extra args are passed to the game, e.g.: ./play.sh -windowed +map d1_trainstation_01
# Set HL2H_DEBUG=1 to include verbose diagnostic logging.
set -e
GAME="$HOME/.local/share/Steam/steamapps/common/Half-Life 2"
LIB="$(cd "$(dirname "$0")" && pwd)/libhl2hake.so"
if [ ! -f "$LIB" ]; then
echo "libhl2hake.so not found - run ./build.sh first" >&2
exit 1
fi
export LD_PRELOAD="$LIB"
exec "$HOME/.steam/steam/ubuntu12_32/steam-runtime/run.sh" -- "$GAME/hl2.sh" -steam -novid -console +map d2_coast_01 "$@"
|