diff --git a/dzgui.sh b/dzgui.sh
index 14101b7..4e44734 100644
--- a/dzgui.sh
+++ b/dzgui.sh
@@ -1,10 +1,10 @@
#!/bin/bash
set -o pipefail
-version=2.2.0
+version=2.2.1-rc.1
aid=221100
game="dayz"
-workshop="https://steamcommunity.com/sharedfiles/filedetails/?id="
+workshop="steam://url/CommunityFilePage/"
api="https://api.battlemetrics.com/servers"
sd_res="--width=1280 --height=800"
config_path="$HOME/.config/dztui/"
@@ -17,6 +17,12 @@ help_url="https://aclist.github.io/dzgui/dzgui"
upstream=$(curl -Ls "$version_url" | awk -F= '/^version=/ {print $2}')
check_config_msg="Check config values and restart."
+#TODO: prevent connecting to offline servers
+#TODO: concat large mod links
+#TODO: check map count and warn
+ #sysctl -q vm.max_map_count
+ #prompt password
+#TODO: abstract zenity title params
declare -A deps
deps=([awk]="5.1.1" [curl]="7.80.0" [jq]="1.6" [tr]="9.0" [zenity]="3.42.1")
@@ -34,6 +40,7 @@ depcheck(){
done
}
init_items(){
+ #array order determines menu selector; this is destructive
items=(
"Launch server list"
"Quick connect to favorite server"
@@ -46,10 +53,11 @@ items=(
"View changelog"
)
}
-#exit_and_cleanup(){
-#rm $tmp
-#rm $link_file
-#}
+exit_and_cleanup(){
+ #TODO: this is currently unused
+ rm $tmp
+ rm $link_file
+}
warn_and_exit(){
zenity --info --title="DZGUI" --text="$1" --icon-name="dialog-warning" 2>/dev/null
printf "[DZGUI] %s\n" "$check_config_msg"
@@ -91,7 +99,6 @@ query_api(){
}
write_config(){
cat <<-END
-
#Path to DayZ installation
steam_path="$steam_path"
@@ -109,7 +116,6 @@ name="$name"
#Set to 1 to perform dry-run and print launch options
debug="0"
-
END
}
guess_path(){
@@ -200,7 +206,7 @@ open_mod_links(){
echo "${workshop}$i
"
done >> $link_file
echo "