Skip to content

Commit ef3f752

Browse files
authored
fix(arma3): resolve arma3 debug not working (#3409)
* use eval in debug
1 parent 0ed9783 commit ef3f752

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lgsm/functions/command_debug.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,12 @@ fi
112112

113113
# Note: do not add double quotes to ${executable} ${startparameters}.
114114
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then
115-
${executable} ${startparameters} -debug
116-
elif [ "${shortname}" == "arma3" ]; then
117-
# Arma3 requires semicolons in the module list, which need to
118-
# be escaped for regular (tmux) loading, but need to be
119-
# stripped when loading straight from the console.
120-
${executable} ${parms//\\;/;}
115+
eval "${executable} ${startparameters} -debug"
121116
elif [ "${engine}" == "quake" ]; then
122-
${executable} ${startparameters} -condebug
117+
eval "${executable} ${startparameters} -condebug"
123118
else
124119
# shellcheck disable=SC2086
125-
${preexecutable} ${executable} ${startparameters}
120+
eval "${preexecutable} ${executable} ${startparameters}"
126121
fi
127122

128123
fn_lockfile_trap

0 commit comments

Comments
 (0)