Browse Source

fn_debug will now echo -debug if used

Daniel Gibbs 11 năm trước cách đây
mục cha
commit
5be5864694
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      functions/fn_debugserver

+ 6 - 1
functions/fn_debugserver

@@ -21,7 +21,12 @@ echo -e "Kernel: ${kernel}"
 echo -e "Hostname: $HOSTNAME"
 echo -e "Hostname: $HOSTNAME"
 echo ""
 echo ""
 echo "Start parameters:"
 echo "Start parameters:"
-echo ${executable} ${parms}
+if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
+	echo "${executable} ${parms} -debug"
+else
+	echo "${executable} ${parms}"
+fi
+
 echo ""
 echo ""
 echo -e "Use for identifying server issues only!"
 echo -e "Use for identifying server issues only!"
 echo -e "Press CTRL+c to drop out of debug mode"
 echo -e "Press CTRL+c to drop out of debug mode"