]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - voretournament-linux-glx.sh
Remove the old saturation slider from the menu, and add the armor based saturation...
[voretournament/voretournament.git] / voretournament-linux-glx.sh
index b5b05c35b75edd1af1f820d568766179c3244624..a0b4f3a7c2ae3a9a877f3e3a9475c2b8ab070214 100644 (file)
@@ -12,11 +12,11 @@ case "${0##*/}" in
 esac
 
 case "$(uname -m)" in
-  x86_64)      arch="x86_64" ;;
-  *)           arch="686" ;;
+  x86_64)      arch="linux64" ;;
+  *)           arch="linux32" ;;
 esac
 
-voretournament="voretournament-linux-${arch}-${mode}"
+voretournament="voretournament-${arch}-${mode}"
 
 set -- ./${voretournament} "${@}"
 
@@ -118,4 +118,13 @@ case "$xserver" in
                ;;
 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 "$@"