diff --git a/dzgui.sh b/dzgui.sh index 623ccf7..f6697a2 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=5.0.0.rc-43 +version=5.0.0.rc-44 #CONSTANTS aid=221100 @@ -548,10 +548,10 @@ fetch_dzq(){ fetch_helpers_by_sum(){ declare -A sums sums=( - ["ui.py"]="2828ecfd733c3ebc7024fbe5c8349cb5" + ["ui.py"]="9411e901a8572568ab129a4fe472a0a3" ["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" - ["funcs"]="5f9f7af1fae725e295de08a95f14ba6d" + ["funcs"]="722834d7fa7aa60a2cf7f5b7350c5675" ) local author="aclist" local repo="dztui" diff --git a/helpers/funcs b/helpers/funcs index 17d0b8a..cc58af6 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -o pipefail -version=5.0.0.rc-43 +version=5.0.0.rc-44 #CONSTANTS aid=221100 @@ -1024,7 +1024,7 @@ try_connect(){ diff=$(merge_modlists "$diff") fi if [[ -n $diff ]]; then - if [[ $is_steam_deck -eq 1 ]] && [[ $(test_display_mode) == "gm" ]]; then + if [[ $(check_architecture) -eq 1 ]] && [[ $(test_display_mode) == "gm" ]]; then printf "Use Desktop Mode to download mods on Steam Deck" return 1 fi @@ -1036,6 +1036,14 @@ try_connect(){ launch "$ip" "$gameport" "$sanitized_mods" fi } +check_architecture(){ + local cpu=$(< /proc/cpuinfo grep "AMD Custom APU 0405") + if [[ -n "$cpu" ]]; then + echo 1 + else + echo 0 + fi +} focus_beta_client(){ _wid(){ wmctrl -ilx |\ diff --git a/helpers/ui.py b/helpers/ui.py index 45c3ff8..56f7104 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -16,7 +16,7 @@ locale.setlocale(locale.LC_ALL, '') gi.require_version("Gtk", "3.0") from gi.repository import Gtk, GLib, Gdk, GObject, Pango -# 5.0.0-rc.43 +# 5.0.0-rc.44 app_name = "DZGUI" cache = {}