Daniel Gibbs %!s(int64=9) %!d(string=hai) anos
pai
achega
d9c09be1a9
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      lgsm/functions/install_config.sh

+ 8 - 0
lgsm/functions/install_config.sh

@@ -52,6 +52,9 @@ fn_default_config_remote(){
 		fn_script_log_info "copying ${servercfg} config file."
 		if [ "${config}" == "${servercfgdefault}" ]; then
 			cp -v "${lgsmdir}/default-configs/${config}" "${servercfgfullpath}"
+		elif [ "${config}" == "${networkcfgdefault}" ]; then
+			# ARMA 3
+			cp -v "${lgsmdir}/default-configs/${config}" "${networkcfgfullpath}"
 		else
 			cp -v "${lgsmdir}/default-configs/${config}" "${servercfgdir}/${config}"
 		fi
@@ -79,6 +82,11 @@ elif [ "${gamename}" == "ARMA 3" ]; then
 	array_configs+=( server.cfg network.cfg )
 	fn_fetch_default_config
 	fn_default_config_remote
+elif [ "${gamename}" == "Battlefield: 1942" ]; then
+	gamedirname="Battlefield1942"
+	array_configs+=( serversettings.con )
+	fn_fetch_default_config
+	fn_default_config_remote
 elif [ "${gamename}" == "Blade Symphony" ]; then
 	gamedirname="BladeSymphony"
 	array_configs+=( server.cfg )