1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

Fix server launch

This commit is contained in:
aclist 2022-10-06 07:49:43 +09:00 committed by GitHub
parent 8ecf9a35d9
commit 69a5f61c18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -o pipefail
version=2.7.0
version=2.7.1
aid=221100
game="dayz"
@ -409,7 +409,6 @@ passed_mod_check(){
legacy_symlinks
symlinks
echo "100"
launch
}
connect(){
@ -438,6 +437,7 @@ connect(){
manual_mod_install
else
passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null)
launch
fi
}
fetch_mods(){
@ -626,7 +626,7 @@ concat_mods(){
launch(){
mods=$(concat_mods)
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)"
zenity --question --title="DZGUI" --ok-label="Write to file" --cancel-label="Back"\
--text="$print_launch_options" 2>/dev/null