Browse Source

added reload parameters in extra places

pull/3407/head
Daniel Gibbs 5 years ago
parent
commit
0bcf00da24
  1. 2
      lgsm/functions/command_debug.sh
  2. 2
      lgsm/functions/command_start.sh
  3. 3
      lgsm/functions/core_legacy.sh
  4. 1
      linuxgsm.sh

2
lgsm/functions/command_debug.sh

@ -67,6 +67,8 @@ fi
if [ "${serverpassword}" ]; then
echo -e "${lightblue}Server password:\t${default}${serverpassword}"
fi
fn_reload_startparameters
echo -e "${lightblue}Start parameters:${default}"
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then
echo -e "${executable} ${startparameters} -debug"

2
lgsm/functions/command_start.sh

@ -71,6 +71,7 @@ fn_start_tmux(){
date '+%s' > "${lockdir}/${selfname}.lock"
echo "${version}" >> "${lockdir}/${selfname}.lock"
echo "${port}" >> "${lockdir}/${selfname}.lock"
fn_reload_startparameters
cd "${executabledir}" || exit
tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${sessionname}" "${preexecutable} ${executable} ${startparameters}" 2> "${lgsmlogdir}/.${selfname}-tmux-error.tmp"
@ -126,6 +127,7 @@ fn_start_tmux(){
echo -e ""
echo -e "Command"
echo -e "================================="
fn_reload_startparameters
echo -e "tmux new-session -d -s \"${sessionname}\" \"${preexecutable} ${executable} ${startparameters}\"" | tee -a "${lgsmlog}"
echo -e ""
echo -e "Error"

3
lgsm/functions/core_legacy.sh

@ -79,5 +79,6 @@ if [ -z "${wsstartmap}" ]; then
fi
fn_parms(){
parms="${startparameters}"
fn_reload_startparameters
parms="${startparameters}"
}

1
linuxgsm.sh

@ -497,7 +497,6 @@ else
fi
}
fn_reload_startparameters
# Load the linuxgsm.sh in to tmpdir. If missing download it.
if [ ! -f "${tmpdir}/linuxgsm.sh" ]; then
fn_fetch_file_github "" "linuxgsm.sh" "${tmpdir}" "chmodx" "norun" "noforcedl" "nomd5"

Loading…
Cancel
Save