Skip to content

Commit 7eb00a9

Browse files
authored
Add options to override map
1 parent 8ddf0b8 commit 7eb00a9

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

tools/arkmanager

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff 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[@]}"

0 commit comments

Comments
 (0)