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

Updated Glibc info and added error catch

Daniel Gibbs 10 лет назад
Родитель
Сommit
ca6c68d2a6
1 измененных файлов с 26 добавлено и 1 удалено
  1. 26 1
      functions/info_glibc.sh

+ 26 - 1
functions/info_glibc.sh

@@ -6,7 +6,26 @@ lgsm_version="271215"
 
 # Description: stores details on servers Glibc requirements.
 
-if [ "${engine}" == "avalanche" ]; then
+
+if [ "${gamename}" == "Blade Symphony" ]; then
+	glibcrequired="2.15"
+	glibcfix="yes"
+elif [ "${gamename}" == "Double Action: Boogaloo" ]; then
+	glibcrequired="2.15"
+	glibcfix="yes"
+elif [ "${gamename}" == "Fistful of Frags" ]; then
+	glibcrequired="2.15"
+	glibcfix="yes"
+elif [ "${gamename}" == "Garry's Mod" ]; then
+	glibcrequired="2.15"
+	glibcfix="yes"
+elif [ "${gamename}" == "Insurgency" ]; then
+	glibcrequired="2.15"
+	glibcfix="yes"
+elif [ "${gamename}" == "No More Room in Hell" ]; then
+	glibcrequired="2.15"
+	glibcfix="yes"
+elif [ "${engine}" == "avalanche" ]; then
 	glibcrequired="2.13"
 	glibcfix="yes"
 elif [ "${engine}" == "dontstarve" ]; then
@@ -30,7 +49,13 @@ elif [ "${engine}" == "spark" ]; then
 elif [ "${engine}" == "starbound" ]; then
 	glibcrequired="2.12"
 	glibcfix="no"
+elif [ "${engine}" == "unreal4" ]; then
+	glibcrequired="2.14"
+	glibcfix="no"
 elif [ "${engine}" == "unity3d" ]; then
 	glibcrequired="2.15"
 	glibcfix="no"
+else
+	glibcrequired="UNKNOWN"
+	glibcfix="no"
 fi