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

Removed servercfgfullpath

Moved this as causing issues with the new warning message. Now MISSING!
is not displayed in the details. However this is still a warning before
details are loaded.
Daniel Gibbs 10 лет назад
Родитель
Сommit
139c7e8aa6
1 измененных файлов с 1 добавлено и 31 удалено
  1. 1 31
      functions/info_config.sh

+ 1 - 31
functions/info_config.sh

@@ -2,7 +2,7 @@
 # LGSM info_config.sh function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-lgsm_version="271215"
+lgsm_version="060116"
 
 # Description: Gets specific details from config files.
 
@@ -12,12 +12,6 @@ lgsm_version="271215"
 # tr -d '=\"; ' remove selected charectors =\";
 # grep -v "foo" filter out lines that contain foo
 
-fn_servercfgfullpath(){
-if [ ! -f "${servercfgfullpath}" ]; then
-	servercfgfullpath="\e[0;31mMISSING!\e[0m ${servercfgfullpath}"
-fi
-}
-
 ## Just Cause 2
 if [ "${engine}" == "avalanche" ]; then
 
@@ -68,8 +62,6 @@ if [ "${engine}" == "avalanche" ]; then
 		port="0"
 	fi
 
-	fn_servercfgfullpath
-
 ## Dont Starve Together
 elif [ "${engine}" == "dontstarve" ]; then
 
@@ -131,8 +123,6 @@ elif [ "${engine}" == "dontstarve" ]; then
 		port="0"
 	fi
 
-	fn_servercfgfullpath
-
 ## Project Zomboid
 elif [ "${engine}" == "projectzomboid" ]; then
 
@@ -164,8 +154,6 @@ elif [ "${engine}" == "projectzomboid" ]; then
 		port="0"
 	fi
 
-	fn_servercfgfullpath
-
 # ARMA 3
 elif [ "${engine}" == "realvirtuality" ]; then
 
@@ -233,8 +221,6 @@ elif [ "${engine}" == "realvirtuality" ]; then
                 masterport="0"
         fi
 
-	fn_servercfgfullpath
-
 # Serious Sam
 elif [ "${engine}" == "seriousengine35" ]; then
 
@@ -294,8 +280,6 @@ elif [ "${engine}" == "seriousengine35" ]; then
 		queryport="0"
 	fi
 
-	fn_servercfgfullpath
-
 # Source Engine Games
 elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 
@@ -329,8 +313,6 @@ elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 		rconpassword="\e[0;31mUNAVAILABLE\e[0m"
 	fi
 
-	fn_servercfgfullpath
-
 # Spark (NS2: Combat)
 elif [ "${engine}" == "spark" ]; then
 
@@ -342,8 +324,6 @@ elif [ "${engine}" == "spark" ]; then
 		queryport="0"
 	fi
 
-	fn_servercfgfullpath
-
 # Teamspeak 3
 elif [ "${gamename}" == "Teamspeak 3" ]; then
 
@@ -390,8 +370,6 @@ elif [ "${gamename}" == "Teamspeak 3" ]; then
 		fileport="30033"
 	fi
 
-	fn_servercfgfullpath
-
 # Teeworlds
 elif [ "${engine}" == "teeworlds" ]; then
 
@@ -443,8 +421,6 @@ elif [ "${engine}" == "teeworlds" ]; then
 		slots="12"
 	fi
 
-	fn_servercfgfullpath
-
 # Terraria
 elif [ "${engine}" == "terraria" ]; then
 
@@ -591,8 +567,6 @@ elif [ "${gamename}" == "7 Days To Die" ]; then
 		queryport="0"
 	fi
 
-	fn_servercfgfullpath
-
 # Hurtworld (unity3d)
 elif [ "${gamename}" == "Hurtworld" ]; then
 
@@ -763,8 +737,6 @@ elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
 
 	fi
 
-	fn_servercfgfullpath
-
 # ARK: Survivaial Evolved
 elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
 
@@ -832,6 +804,4 @@ elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
 		queryport="0"
 	fi
 
-	fn_servercfgfullpath
-
 fi