1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-10 06:13:02 +02:00

Add confirmation dialog before run

This commit is contained in:
aclist 2022-06-13 10:16:03 +09:00 committed by GitHub
parent 748ce0a05f
commit bcda934f14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,6 +241,8 @@ launch(){
zenity --warning --title="DZGUI" \
--text="$(printf "[DEBUG] This is a dry run. These options would have been used to launch the game:\n\nsteam -applaunch $aid -connect=$ip -nolauncher -nosplash -skipintro \"-mod=$mods\"\n")" 2>/dev/null
else
echo "[DZGUI] All OK. Launching DayZ"
zenity --title="DZGUI" --info --text="Launch conditions satisfied.\nDayZ will launch after clicking [OK]." 2>/dev/null
steam -applaunch $aid -connect=$ip -nolauncher -nosplash -skipintro -name=$name \"-mod=$mods\"
exit
fi