diff --git a/run-debug.sh b/run-debug.sh index 7552f6aa..5ee1e001 100755 --- a/run-debug.sh +++ b/run-debug.sh @@ -13,6 +13,12 @@ if [ ! -f $BIN ]; then exit 1 fi +if [ ! -f baseq3r/vm/ui.qvm ]; then + echo "QVMs not found!" + echo "Run 'cp engine/build/$BUILD-$PLATFORM-$ARCH/baseq3r/vm/*.qvm baseq3r/vm/'" + exit 1 +fi + # Run the game ./$BIN +set fs_basepath "." +set vm_game 0 +set vm_cgame 0 +set vm_ui 0 $@ diff --git a/run.sh b/run.sh index 8f802d29..9bc4f656 100755 --- a/run.sh +++ b/run.sh @@ -17,6 +17,12 @@ if [ ! -f $BIN ]; then exit 1 fi +if [ ! -f baseq3r/vm/ui.qvm ]; then + echo "QVMs not found!" + echo "Run 'cp engine/build/$BUILD-$PLATFORM-$ARCH/baseq3r/vm/*.qvm baseq3r/vm/'" + exit 1 +fi + # Run the game ./$BIN +set fs_basepath "." +set vm_game 0 +set vm_cgame 0 +set vm_ui 0 $@