2011-07-22 00:17:43 +00:00
|
|
|
#!/bin/sh
|
2011-07-26 21:23:52 +00:00
|
|
|
# Q3Rally Unix Launcher
|
|
|
|
|
|
|
|
PLATFORM=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'|sed -e 's/\//_/g'`
|
|
|
|
ARCH=`uname -m | sed -e s/i.86/i386/`
|
|
|
|
BUILD=release
|
|
|
|
|
2011-08-09 15:30:56 +00:00
|
|
|
BIN=q3rally.$ARCH
|
|
|
|
|
|
|
|
if [ ! -f $BIN ]; then
|
2011-07-26 21:23:52 +00:00
|
|
|
BIN=engine/build/$BUILD-$PLATFORM-$ARCH/q3rally.$ARCH
|
2011-08-09 15:30:56 +00:00
|
|
|
fi
|
2011-07-26 21:23:52 +00:00
|
|
|
|
|
|
|
if [ ! -f $BIN ]; then
|
2011-08-09 15:30:56 +00:00
|
|
|
echo "Game binary '$BIN' not found!"
|
|
|
|
echo "Run 'make -C engine' to build it."
|
|
|
|
exit 1
|
2011-07-26 21:23:52 +00:00
|
|
|
fi
|
|
|
|
|
2011-08-03 05:12:59 +00:00
|
|
|
if [ ! -f baseq3r/vm/ui.qvm ]; then
|
2011-08-09 15:30:56 +00:00
|
|
|
echo "QVMs not found!"
|
|
|
|
echo "Run 'cp engine/build/$BUILD-$PLATFORM-$ARCH/baseq3r/vm/*.qvm baseq3r/vm/'"
|
|
|
|
exit 1
|
2011-08-03 05:12:59 +00:00
|
|
|
fi
|
|
|
|
|
2011-07-26 21:23:52 +00:00
|
|
|
# Run the game
|
2011-08-09 15:30:56 +00:00
|
|
|
./$BIN +set fs_basepath "." +set vm_game 0 +set vm_cgame 0 +set vm_ui 0 $@
|
2011-07-22 00:17:43 +00:00
|
|
|
|