Add real Deck check function

This commit is contained in:
icenine451 2024-03-09 13:17:39 -05:00
parent 3bb1706c26
commit 013892d203

View file

@ -28,6 +28,17 @@ check_desktop_mode() {
fi
}
check_is_steam_deck() {
# This function will check the internal product ID for the Steam Deck codename and return "true" if RetroDECK is running on a real Deck
# USAGE: if [[ $(check_is_steam_deck) == "true" ]]; then
if [[ $(cat /sys/devices/virtual/dmi/id/product_name) == "Jupiter" ]]; then
echo "true"
else
echo "false"
fi
}
check_for_version_update() {
# This function will perform a basic online version check and alert the user if there is a new version available.