Skip to content

Commit 61d4866

Browse files
committed
fix: remove redundant fetch of default config for multiple game types
1 parent 3622b28 commit 61d4866

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lgsm/modules/install_config.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ elif [ "${shortname}" == "bt" ]; then
289289
elif [ "${shortname}" == "btl" ]; then
290290
fn_check_cfgdir
291291
array_configs+=(Game.ini)
292-
fn_fetch_default_config
293292
fn_default_config_remote
294293
fn_set_config_vars
295294
fn_list_config_locations
@@ -370,7 +369,6 @@ elif [ "${shortname}" == "cs" ]; then
370369
fn_list_config_locations
371370
elif [ "${shortname}" == "cs2" ]; then
372371
array_configs+=(server.cfg)
373-
fn_fetch_default_config
374372
fn_default_config_remote
375373
fn_set_config_vars
376374
fn_list_config_locations
@@ -483,7 +481,6 @@ elif [ "${shortname}" == "hldms" ]; then
483481
fn_list_config_locations
484482
elif [ "${shortname}" == "ohd" ]; then
485483
array_configs+=(Admins.cfg Engine.ini Game.ini MapCycle.cfg)
486-
fn_fetch_default_config
487484
fn_default_config_remote
488485
fn_set_config_vars
489486
fn_list_config_locations
@@ -585,7 +582,6 @@ elif [ "${shortname}" == "pvkii" ]; then
585582
fn_list_config_locations
586583
elif [ "${shortname}" == "pw" ]; then
587584
array_configs+=(PalWorldSettings.ini)
588-
fn_fetch_default_config
589585
fn_default_config_remote
590586
fn_set_config_vars
591587
fn_list_config_locations
@@ -614,13 +610,11 @@ elif [ "${shortname}" == "q2" ]; then
614610
fn_list_config_locations
615611
elif [ "${shortname}" == "q3" ]; then
616612
array_configs+=(server.cfg)
617-
fn_fetch_default_config
618613
fn_default_config_remote
619614
fn_set_config_vars
620615
fn_list_config_locations
621616
elif [ "${shortname}" == "q4" ]; then
622617
array_configs+=(server.cfg)
623-
fn_fetch_default_config
624618
fn_default_config_remote
625619
fn_set_config_vars
626620
fn_list_config_locations
@@ -784,7 +778,6 @@ elif [ "${shortname}" == "wmc" ]; then
784778
fn_list_config_locations
785779
elif [ "${shortname}" == "xnt" ]; then
786780
array_configs+=(server.cfg)
787-
fn_fetch_default_config
788781
fn_default_config_remote
789782
fn_set_config_vars
790783
fn_list_config_locations

0 commit comments

Comments
 (0)