fix: abort path discovery

This commit is contained in:
aclist committed 2024-12-16 15:21:57 +09:00
1 parent 34b3d3bc8c
commit 6e3746e9b4
3 files changed
+18 -5

No files matched your search

+3 -3
View File
@@ -581,7 +581,7 @@ fetch_helpers_by_sum(){
["ui.py"]="0e3845ef150ee9863f9160c62dbb24f9"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="4c1480fcfae15c4bc1c02a337d1de488"
["funcs"]="a9745fa5cc2f007bddf0d30032845fbd"
["lan"]="c62e84ddd1457b71a85ad21da662b9af"
)
local author="aclist"
@@ -747,7 +747,7 @@ find_library_folder(){
local search_path="$1"
steam_path="$(python3 "$helpers_path/vdf2json.py" -i "$1/steamapps/libraryfolders.vdf" \
| jq -r '.libraryfolders[]|select(.apps|has("221100")).path')"
if [[ ! $? -eq 0 ]]; then
if [[ ! $? -eq 0 ]] || [[ -z $steam_path ]]; then
logger WARN "Failed to parse Steam path using '$search_path'"
return 1
fi
@@ -800,7 +800,7 @@ create_config(){
find_library_folder "$default_steam_path"
if [[ -z $steam_path ]]; then
logger raise_error "Steam path was empty"
zenity --question --text="DayZ not found or not installed at the Steam library given." --ok-label="Choose path manually" --cancel-label="Exit"
zenity --question --text="DayZ not found or not installed at the Steam library given. NOTE: if you recently installed DayZ or moved its location, you MUST restart Steam first for these changes to synch." --ok-label="Choose path manually" --cancel-label="Exit"
if [[ $? -eq 0 ]]; then
logger INFO "User selected file picker"
file_picker