File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -1242,6 +1242,33 @@ doRun() {
12421242 kill -STOP $BASHPID # wait for caller to renice us
12431243 fi
12441244
1245+ for arg in " $@ " ; do
1246+ case arg in
1247+ --map=*)
1248+ serverMap=" ${arg#* =} "
1249+ ;;
1250+ --map-mod-id=*)
1251+ serverMapModId=" ${arg#* =} "
1252+ ;;
1253+ --arkmod,*=*)
1254+ val=" ${arg#* =} "
1255+ modid=" ${arg%% =* } "
1256+ modid=" ${modid# --arkmod,} "
1257+ case " $val " in
1258+ game*|enabled)
1259+ ark_GameModIds=" ${ark_GameModIds}${ark_GameModIds: +,}${modid} "
1260+ ;;
1261+ map*)
1262+ serverMapModId=" ${modid} "
1263+ ;;
1264+ tc|total*)
1265+ ark_TotalConversionMod=" ${modid} "
1266+ ;;
1267+ esac
1268+ ;;
1269+ esac
1270+ done
1271+
12451272 arkserveropts=" $serverMap "
12461273 declare -A usedoptions
12471274
@@ -4201,7 +4228,7 @@ main(){
42014228
42024229 case " $command " in
42034230 run)
4204- doRun
4231+ doRun " ${options[@]} "
42054232 ;;
42064233 start)
42074234 doStart " ${options[@]} "
You can’t perform that action at this time.
0 commit comments