projects
/
voretournament
/
voretournament.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move all other sources in a separate subfolder
[voretournament/voretournament.git]
/
voretournament-linux-glx.sh
diff --git
a/voretournament-linux-glx.sh
b/voretournament-linux-glx.sh
index 020970497116e080a5a0946a88473139f953b8cd..a0b4f3a7c2ae3a9a877f3e3a9475c2b8ab070214 100644
(file)
--- a/
voretournament-linux-glx.sh
+++ b/
voretournament-linux-glx.sh
@@
-16,9
+16,9
@@
case "$(uname -m)" in
*) arch="linux32" ;;
esac
*) arch="linux32" ;;
esac
-
xonotic="xonotic
-${arch}-${mode}"
+
voretournament="voretournament
-${arch}-${mode}"
-set -- ./${
xonotic
} "${@}"
+set -- ./${
voretournament
} "${@}"
xserver=
xlayout=
xserver=
xlayout=
@@
-43,14
+43,14
@@
setdisplay()
}
# now how do we execute it?
}
# now how do we execute it?
-if [ -r ~/.
xonotic
/data/config.cfg ]; then
+if [ -r ~/.
voretournament
/data/config.cfg ]; then
while read -r CMD KEY VALUE; do
case "$CMD:$KEY" in
seta:vid_x11_display)
setdisplay "$VALUE"
;;
esac
while read -r CMD KEY VALUE; do
case "$CMD:$KEY" in
seta:vid_x11_display)
setdisplay "$VALUE"
;;
esac
- done < ~/.
xonotic
/data/config.cfg
+ done < ~/.
voretournament
/data/config.cfg
fi
m=0
fi
m=0
@@
-88,10
+88,10
@@
case "$xserver" in
# X server already exists
export DISPLAY=:$xserver
prefix="DISPLAY=:$xserver "
# X server already exists
export DISPLAY=:$xserver
prefix="DISPLAY=:$xserver "
- msg=$msg$lf"- Running
Xonotic
on already existing display :$xserver"
+ msg=$msg$lf"- Running
VoreTournament
on already existing display :$xserver"
else
set -- startx "$@" -fullscreen -- ":$xserver"
else
set -- startx "$@" -fullscreen -- ":$xserver"
- msg=$msg$lf"- Running
Xonotic
on a newly created X server :$xserver."
+ msg=$msg$lf"- Running
VoreTournament
on a newly created X server :$xserver."
case "$xlayout" in
'')
;;
case "$xlayout" in
'')
;;
@@
-111,11
+111,20
@@
case "$xserver" in
echo "Resulting command line:"
echo " $prefix$*"
echo
echo "Resulting command line:"
echo " $prefix$*"
echo
- echo "To undo these overrides, edit ~/.
xonotic
/data/config.cfg and remove the line"
+ echo "To undo these overrides, edit ~/.
voretournament
/data/config.cfg and remove the line"
echo "starting with 'seta vid_x11_display'."
echo
echo
;;
esac
echo "starting with 'seta vid_x11_display'."
echo
echo
;;
esac
+# if pulseaudio
+if [ -z "$SDL_AUDIODRIVER" ]; then
+ if ps -C pulseaudio >/dev/null; then
+ if ldd /usr/lib/libSDL.so 2>/dev/null | grep pulse >/dev/null; then
+ export SDL_AUDIODRIVER=pulse
+ fi
+ fi
+fi
+
exec "$@"
exec "$@"