mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: check architecture
This commit is contained in:
parent
23bd692fca
commit
85f4f7e7f2
3 changed files with 14 additions and 6 deletions
6
dzgui.sh
6
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"
|
||||
|
|
|
@ -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 |\
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue