From 9b33521c2f2727176a4e7aee62943a97444080b2 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 26 Dec 2007 23:39:52 +0000 Subject: [PATCH] command-line arguments cleanup git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1502 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- assaultcube.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assaultcube.sh b/assaultcube.sh index 84a2268b..2cba7f63 100755 --- a/assaultcube.sh +++ b/assaultcube.sh @@ -4,6 +4,10 @@ #CUBE_DIR=/usr/local/cube CUBE_DIR=./ +# CUBE_OPTIONS contains any command line options you would like to start Sauerbraten with. +#CUBE_OPTIONS="-f" +CUBE_OPTIONS="--home=${HOME}/.assaultcube --init" + # SYSTEM_NAME should be set to the name of your operating system. #SYSTEM_NAME=Linux SYSTEM_NAME=`uname -s` @@ -43,7 +47,7 @@ fi if [ -x ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ] then cd ${CUBE_DIR} - exec ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client --init $* + exec ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ${CUBE_OPTIONS} $@ else echo "Your platform does not have a pre-compiled Cube client." echo "Please follow the following steps to build a native client:"