From a6ce9c4ba79282683a9b4069cea50998fa8909da Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 20 Nov 2018 14:31:04 +0100 Subject: [PATCH] Fix "all run" trying to run a no longer supported executable (wgl or glx), it now runs the sdl one --- misc/tools/all/xonotic.subr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 9118c505..5916f5f6 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -161,7 +161,7 @@ case "$cmd" in MAKEFLAGS="$MAKEFLAGS CFLAGS_SSE= CFLAGS_SSE2=" ;; esac - + if ! verbose $CC misc/tools/conftest.c -o conftest; then msg "" msg "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" @@ -295,7 +295,6 @@ case "$cmd" in ;; run) if [ -n "$WE_HATE_OUR_USERS" ]; then - client= case `uname -m` in x86_64) export PATH="$d0/misc/buildfiles/win64:$d0/d0_blind_id/.libs:$PATH" @@ -307,22 +306,23 @@ case "$cmd" in elif [ x"`uname`" = x"Darwin" ]; then export DYLD_LIBRARY_PATH="$d0/misc/buildfiles/osx/Xonotic.app/Contents/MacOS:$d0/d0_blind_id/.libs" export DYLD_FRAMEWORK_PATH="$d0/misc/buildfiles/osx/Xonotic.app/Contents/Frameworks" - client=-sdl else export LD_LIBRARY_PATH="$d0/d0_blind_id/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" - client=-sdl fi + + client=-sdl + USE_RLWRAP=no case "$1" in dedicated) client=-$1 + USE_RLWRAP= shift ;; sdl) - USE_RLWRAP=no - client=-$1 shift ;; esac + if ! [ -x "darkplaces/darkplaces$client" ]; then if [ -x "darkplaces/darkplaces$client.exe" ]; then client=$client.exe -- 2.39.2