You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
873 B
Bash
37 lines
873 B
Bash
#!/bin/sh
|
|
|
|
# there's run & wait-before-run, we only care about the latter.
|
|
COMMANDTYPE=$1
|
|
|
|
# this is how Steam tries to run the game
|
|
if [ "$COMMANDTYPE" == "wait-before-run" ]; then
|
|
# used to decipher which game we'll play
|
|
GAMEBINARY=$(basename "$2")
|
|
# steam game dir
|
|
GAMEDIR=$(dirname "$2")
|
|
|
|
PARMARR=( "$@" )
|
|
ARGLEN=${#PARMARR[@]}
|
|
GAMEARGS=${PARMARR[@]:2:$ARGLEN-1}
|
|
|
|
if [ "$GAMEBINARY" == "gta-vc.exe" ]; then
|
|
cd "$GAMEDIR"
|
|
if ! [ -f ./reVC ]; then
|
|
if ! [ -f ./revc-linux.tar.gz ]; then
|
|
wget https://www.frag-net.com/dl/saved/revc-linux.tar.gz
|
|
fi
|
|
tar xvfz ./revc-linux.tar.gz
|
|
fi
|
|
./run-reVC.sh
|
|
elif [ "$GAMEBINARY" == "gta3.exe" ]; then
|
|
cd "$GAMEDIR"
|
|
if ! [ -f ./re3 ]; then
|
|
if ! [ -f ./re3-linux.tar.gz ]; then
|
|
wget https://www.frag-net.com/dl/saved/re3-linux.tar.gz
|
|
fi
|
|
tar xvfz ./re3-linux.tar.gz
|
|
fi
|
|
./run-re3.sh
|
|
fi
|
|
fi
|