Procházet zdrojové kódy

fix(arma3): resolve arma3 debug not working (#3409)

* use eval in debug
Daniel Gibbs před 4 roky
rodič
revize
ef3f752717
1 změnil soubory, kde provedl 3 přidání a 8 odebrání
  1. 3 8
      lgsm/functions/command_debug.sh

+ 3 - 8
lgsm/functions/command_debug.sh

@@ -112,17 +112,12 @@ fi
 
 # Note: do not add double quotes to ${executable} ${startparameters}.
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then
-	${executable} ${startparameters} -debug
-elif [ "${shortname}" == "arma3" ]; then
-	# Arma3 requires semicolons in the module list, which need to
-	# be escaped for regular (tmux) loading, but need to be
-	# stripped when loading straight from the console.
-	${executable} ${parms//\\;/;}
+	eval "${executable} ${startparameters} -debug"
 elif [ "${engine}" == "quake" ]; then
-	${executable} ${startparameters} -condebug
+	eval "${executable} ${startparameters} -condebug"
 else
 	# shellcheck disable=SC2086
-	${preexecutable} ${executable} ${startparameters}
+	eval "${preexecutable} ${executable} ${startparameters}"
 fi
 
 fn_lockfile_trap