Bläddra i källkod

Fixed system_requirements

Daniel Gibbs 9 år sedan
förälder
incheckning
f93d373230
2 ändrade filer med 6 tillägg och 4 borttagningar
  1. 1 1
      lgsm/functions/check.sh
  2. 5 3
      lgsm/functions/check_system_requirements.sh

+ 1 - 1
lgsm/functions/check.sh

@@ -75,7 +75,7 @@ do
 	fi
 done
 
-local allowed_commands_array=( command_install.sh command_start.sh command_debug.sh )
+local allowed_commands_array=( command_debug.sh command_start.sh command_install.sh )
 for allowed_command in "${allowed_commands_array[@]}"
 do
 	if [ "${allowed_command}" == "${function_selfname}" ]; then

+ 5 - 3
lgsm/functions/check_system_requirements.sh

@@ -22,12 +22,14 @@ if [ "${gamename}" == "ARMA 3" ]; then
 fi
 
 # If the game or engine has a minimum RAM Requirement, compare it to system's available RAM.
-if [ -n "${ramrequirement}" ]; then
+if [ -n "${ramrequirementmb}" ]; then
 	if [ "${physmemtotalmb}" -lt "${ramrequirementmb}" ]; then
+		fn_print_dots "Check RAM"
+		sleep 0.5
 		# Warn the user
-		fn_print_warn "Insufficient memory: ${ramrequirementgb}G required, ${physmemtotal} available"
+		fn_print_warn_nl "Check RAM: ${ramrequirementgb}G required, ${physmemtotal} available"
 		sleep 1
-		fn_print_warning "You may experiance poor performance from your server"
+		echo  "	* ${gamename} server may fail to run or experience poor performance."
 		sleep 1
 	fi
 fi