From 13659ba166fd7b8514270390362ea87f57402316 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Thu, 28 Oct 2021 23:20:11 +0200 Subject: [PATCH] Remove launch_fte function because some shells aren't passing the arguments over properly? No clue. --- fteqw_wrapper | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/fteqw_wrapper b/fteqw_wrapper index b52a8ed..9c970ff 100755 --- a/fteqw_wrapper +++ b/fteqw_wrapper @@ -2,11 +2,6 @@ PLAY_RERELEASE=1 -launch_fte() -{ - fteqw $* -} - # there's run & wait-before-run, we only care about the latter. COMMANDTYPE=$1 @@ -28,26 +23,26 @@ if [ "$COMMANDTYPE" == "wait-before-run" ]; then if [ "$GAMEBINARY" == "Quake_x64_steam.exe" ]; then if [ $PLAY_RERELEASE == 1 ]; then - launch_fte -basedir "$GAMEDIR" $GAMEARGS + fteqw -basedir "$GAMEDIR" $GAMEARGS else NEWPATH=$(dirname "$GAMEDIR") - launch_fte -basedir "$NEWPATH" -quake $GAMEARGS + fteqw -basedir "$NEWPATH" -quake $GAMEARGS fi elif [ "$GAMEBINARY" == "Winquake.exe" ]; then - launch_fte -basedir "$GAMEDIR" $GAMEARGS + fteqw -basedir "$GAMEDIR" $GAMEARGS elif [ "$GAMEBINARY" == "qwcl.exe" ]; then - launch_fte -basedir "$GAMEDIR" -game qw $GAMEARGS + fteqw -basedir "$GAMEDIR" -game qw $GAMEARGS elif [ "$GAMEBINARY" == "Glquake.exe" ]; then - launch_fte -basedir "$GAMEDIR" -quake $GAMEARGS + fteqw -basedir "$GAMEDIR" -quake $GAMEARGS elif [ "$GAMEBINARY" == "glqwcl.exe" ]; then - launch_fte -basedir "$GAMEDIR" -quake -game qw $GAMEARGS + fteqw -basedir "$GAMEDIR" -quake -game qw $GAMEARGS elif [ "$GAMEBINARY" == "quake3.exe" ]; then - launch_fte -basedir "$GAMEDIR" -quake3 $GAMEARGS + fteqw -basedir "$GAMEDIR" -quake3 $GAMEARGS elif [ "$GAMEBINARY" == "quake2.exe" ]; then - launch_fte -basedir "$GAMEDIR" -quake2 $GAMEARGS + fteqw -basedir "$GAMEDIR" -quake2 $GAMEARGS elif [ "$GAMEBINARY" == "glh2.exe" ]; then - launch_fte -basedir "$GAMEDIR" -hexen2 $GAMEARGS + fteqw -basedir "$GAMEDIR" -hexen2 $GAMEARGS else - launch_fte -basedir "$GAMEDIR" $GAMEARGS + fteqw -basedir "$GAMEDIR" $GAMEARGS fi fi