Fix server launch

This commit is contained in:
aclist authored and GitHub committed 2022-10-06 07:49:43 +09:00
1 parent 8ecf9a35d9
commit 69a5f61c18
1 file changed
+3 -3
+3 -3
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -o pipefail set -o pipefail
version=2.7.0 version=2.7.1
aid=221100 aid=221100
game="dayz" game="dayz"
@@ -409,7 +409,6 @@ passed_mod_check(){
legacy_symlinks legacy_symlinks
symlinks symlinks
echo "100" echo "100"
launch
} }
connect(){ connect(){
@@ -438,6 +437,7 @@ connect(){
manual_mod_install manual_mod_install
else else
passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null) passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null)
launch
fi fi
} }
fetch_mods(){ fetch_mods(){
@@ -626,7 +626,7 @@ concat_mods(){
launch(){ launch(){
mods=$(concat_mods) mods=$(concat_mods)
if [[ $debug -eq 1 ]]; then if [[ $debug -eq 1 ]]; then
launch_options="steam -applaunch $aid -connect=$ip -nolauncher -nosplash -skipintro \"-mod=$mods\"" launch_options="steam -applaunch $aid -connect=$ip -nolauncher -nosplash -name=$name -skipintro \"-mod=$mods\""
print_launch_options="$(printf "This is a dry run.\nThese options would have been used to launch the game:\n\n$launch_options\n" | fold -w 60)" print_launch_options="$(printf "This is a dry run.\nThese options would have been used to launch the game:\n\n$launch_options\n" | fold -w 60)"
zenity --question --title="DZGUI" --ok-label="Write to file" --cancel-label="Back"\ zenity --question --title="DZGUI" --ok-label="Write to file" --cancel-label="Back"\
--text="$print_launch_options" 2>/dev/null --text="$print_launch_options" 2>/dev/null