Răsfoiți Sursa

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

* use eval in debug
Daniel Gibbs 4 ani în urmă
părinte
comite
ef3f752717
1 a modificat fișierele cu 3 adăugiri și 8 ștergeri
  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}.
 # Note: do not add double quotes to ${executable} ${startparameters}.
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then
 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
 elif [ "${engine}" == "quake" ]; then
-	${executable} ${startparameters} -condebug
+	eval "${executable} ${startparameters} -condebug"
 else
 else
 	# shellcheck disable=SC2086
 	# shellcheck disable=SC2086
-	${preexecutable} ${executable} ${startparameters}
+	eval "${preexecutable} ${executable} ${startparameters}"
 fi
 fi
 
 
 fn_lockfile_trap
 fn_lockfile_trap