Browse Source

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

* use eval in debug
pull/3570/head
Daniel Gibbs 4 years ago
committed by GitHub
parent
commit
ef3f752717
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      lgsm/functions/command_debug.sh

11
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

Loading…
Cancel
Save