From 7c4cbecb4755f8445d4c48fa19f03ed93de1f322 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Tue, 16 Jul 2024 22:23:05 +0900 Subject: [PATCH] fix: pack launch parameters into array #136 --- CHANGELOG.md | 4 ++++ dzgui.sh | 4 ++-- helpers/funcs | 9 ++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5526c5d..a459224 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [5.3.5] 2024-07-16 +### Fixed +- Pack launch parameters into array before splitting + ## [5.3.4] 2024-07-16 ### Fixed - Clerical update to prior 5.3.3 hotfix diff --git a/dzgui.sh b/dzgui.sh index 489a7de..cad5320 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=5.3.4 +version=5.3.5 #CONSTANTS aid=221100 @@ -538,7 +538,7 @@ fetch_helpers_by_sum(){ ["ui.py"]="f14772424461ec438579dec567db0634" ["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" - ["funcs"]="7d7ab9c23d28bbcf40e53a0764afa5e8" + ["funcs"]="e6752185dda9c0e35731bd0b95a3cb19" ) local author="aclist" local repo="dztui" diff --git a/helpers/funcs b/helpers/funcs index bd0a6fe..5119494 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -1307,7 +1307,14 @@ final_handshake(){ return 1 fi logger INFO "Kicking off Steam launch" - $steam_cmd -applaunch $aid -connect=$saved_address -nolauncher -nosplash -skipintro \"-name=$name\" \"-mod=$saved_mods\" & + local params=() + params+=("-connect=$saved_address") + params+=("-nolauncher") + params+=("-nosplash") + params+=("-skipintro") + params+=("\"-name=$name\"") + params+=("\"-mod=$saved_mods\"") + $steam_cmd -applaunch $aid "${params[@]}" & until [[ $(is_dayz_running) -eq 1 ]]; do sleep 0.1s done