Bladeren bron

fix: remove redundant fetch of default config for multiple game types

Daniel Gibbs 11 maanden geleden
bovenliggende
commit
61d4866b34
1 gewijzigde bestanden met toevoegingen van 0 en 7 verwijderingen
  1. 0 7
      lgsm/modules/install_config.sh

+ 0 - 7
lgsm/modules/install_config.sh

@@ -289,7 +289,6 @@ elif [ "${shortname}" == "bt" ]; then
 elif [ "${shortname}" == "btl" ]; then
 elif [ "${shortname}" == "btl" ]; then
 	fn_check_cfgdir
 	fn_check_cfgdir
 	array_configs+=(Game.ini)
 	array_configs+=(Game.ini)
-	fn_fetch_default_config
 	fn_default_config_remote
 	fn_default_config_remote
 	fn_set_config_vars
 	fn_set_config_vars
 	fn_list_config_locations
 	fn_list_config_locations
@@ -370,7 +369,6 @@ elif [ "${shortname}" == "cs" ]; then
 	fn_list_config_locations
 	fn_list_config_locations
 elif [ "${shortname}" == "cs2" ]; then
 elif [ "${shortname}" == "cs2" ]; then
 	array_configs+=(server.cfg)
 	array_configs+=(server.cfg)
-	fn_fetch_default_config
 	fn_default_config_remote
 	fn_default_config_remote
 	fn_set_config_vars
 	fn_set_config_vars
 	fn_list_config_locations
 	fn_list_config_locations
@@ -483,7 +481,6 @@ elif [ "${shortname}" == "hldms" ]; then
 	fn_list_config_locations
 	fn_list_config_locations
 elif [ "${shortname}" == "ohd" ]; then
 elif [ "${shortname}" == "ohd" ]; then
 	array_configs+=(Admins.cfg Engine.ini Game.ini MapCycle.cfg)
 	array_configs+=(Admins.cfg Engine.ini Game.ini MapCycle.cfg)
-	fn_fetch_default_config
 	fn_default_config_remote
 	fn_default_config_remote
 	fn_set_config_vars
 	fn_set_config_vars
 	fn_list_config_locations
 	fn_list_config_locations
@@ -585,7 +582,6 @@ elif [ "${shortname}" == "pvkii" ]; then
 	fn_list_config_locations
 	fn_list_config_locations
 elif [ "${shortname}" == "pw" ]; then
 elif [ "${shortname}" == "pw" ]; then
 	array_configs+=(PalWorldSettings.ini)
 	array_configs+=(PalWorldSettings.ini)
-	fn_fetch_default_config
 	fn_default_config_remote
 	fn_default_config_remote
 	fn_set_config_vars
 	fn_set_config_vars
 	fn_list_config_locations
 	fn_list_config_locations
@@ -614,13 +610,11 @@ elif [ "${shortname}" == "q2" ]; then
 	fn_list_config_locations
 	fn_list_config_locations
 elif [ "${shortname}" == "q3" ]; then
 elif [ "${shortname}" == "q3" ]; then
 	array_configs+=(server.cfg)
 	array_configs+=(server.cfg)
-	fn_fetch_default_config
 	fn_default_config_remote
 	fn_default_config_remote
 	fn_set_config_vars
 	fn_set_config_vars
 	fn_list_config_locations
 	fn_list_config_locations
 elif [ "${shortname}" == "q4" ]; then
 elif [ "${shortname}" == "q4" ]; then
 	array_configs+=(server.cfg)
 	array_configs+=(server.cfg)
-	fn_fetch_default_config
 	fn_default_config_remote
 	fn_default_config_remote
 	fn_set_config_vars
 	fn_set_config_vars
 	fn_list_config_locations
 	fn_list_config_locations
@@ -784,7 +778,6 @@ elif [ "${shortname}" == "wmc" ]; then
 	fn_list_config_locations
 	fn_list_config_locations
 elif [ "${shortname}" == "xnt" ]; then
 elif [ "${shortname}" == "xnt" ]; then
 	array_configs+=(server.cfg)
 	array_configs+=(server.cfg)
-	fn_fetch_default_config
 	fn_default_config_remote
 	fn_default_config_remote
 	fn_set_config_vars
 	fn_set_config_vars
 	fn_list_config_locations
 	fn_list_config_locations