launch-dedicated.sh: Support passing args from CLI

This commit is contained in:
Moviuro
2015-06-06 22:03:54 +02:00
parent 52179e802e
commit 68cc00447c

View File

@@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
# example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details # example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details
Name="Dedicated Server" Name="${Name:-"Dedicated Server"}"
Mod="ra" Mod="${Mod:-"ra"}"
Dedicated="True" Dedicated="True"
DedicatedLoop="True" DedicatedLoop="True"
ListenPort=1234 ListenPort="${ListenPort:-"1234"}"
ExternalPort=1234 ExternalPort="${ExternalPort:-"1234"}"
AdvertiseOnline="False" AdvertiseOnline="${AdvertiseOnline:-"False"}"
while true; do while true; do
mono --debug OpenRA.Game.exe Game.Mod=$Mod Server.Dedicated=$Dedicated Server.DedicatedLoop=$DedicatedLoop \ mono --debug OpenRA.Game.exe Game.Mod=$Mod Server.Dedicated=$Dedicated Server.DedicatedLoop=$DedicatedLoop \