summarylogtreecommitdiffstats
path: root/dom4
diff options
context:
space:
mode:
Diffstat (limited to 'dom4')
-rwxr-xr-xdom414
1 files changed, 14 insertions, 0 deletions
diff --git a/dom4 b/dom4
index fc0a8433e95..470cb8f998b 100755
--- a/dom4
+++ b/dom4
@@ -1,5 +1,10 @@
#!/bin/bash
+# List all configured games.
+function list {
+ ls /usr/share/dom4/config
+}
+
# Install Dominions 4 via SteamCMD.
function install {
if [ ! $(find /opt/dom4 -maxdepth 0 -type d -empty 2>/dev/null) ];then
@@ -39,6 +44,7 @@ function change {
fi
echo "Setting $1 up for hosting."
+ echo
echo "$1" | sudo -u dom4 tee /usr/share/dom4/current > /dev/null
}
@@ -206,6 +212,10 @@ function delete {
}
case $1 in
+ "list")
+ list
+ ;;
+
"install")
install
;;
@@ -228,6 +238,10 @@ Install Dominions 4 through SteamCMD:
dom4 install
+List configured games:
+
+ dom4 list
+
Configure a new game, or edit an existing one:
dom4 config mygame