Просмотр исходного кода

Added Eco and SteamCMD Glibc requirements

Daniel Gibbs 8 лет назад
Родитель
Сommit
b018c87988
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      lgsm/functions/info_glibc.sh

+ 11 - 0
lgsm/functions/info_glibc.sh

@@ -54,6 +54,9 @@ elif [ "${gamename}" == "Day of Infamy" ]; then
 elif [ "${gamename}" == "Double Action: Boogaloo" ]; then
 	glibcrequired="2.15"
 	glibcfix="yes"
+elif [ "${gamename}" == "Eco" ]; then
+	glibcrequired="NOT REQUIRED"
+	glibcfix="no"
 elif [ "${gamename}" == "Empires Mod" ]; then
 	glibcrequired="2.15"
 	glibcfix="yes"
@@ -199,3 +202,11 @@ else
 	glibcrequired="UNKNOWN"
 	glibcfix="no"
 fi
+
+# Sets the SteamCMD GLIBC requirement if server requirement is less.
+if [ -n "${appid}" ]; then
+	if [ "${glibcrequired}" = "NOT REQUIRED" ]||[ "${glibcrequired}" < "2.14" ]||[ -z "${glibcrequired}" ] ; then
+		glibcrequired="2.14"
+		glibcfix="no"
+	fi
+fi