From 013892d203695ece40c4cccddae2d6f98420d481 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Sat, 9 Mar 2024 13:17:39 -0500 Subject: [PATCH] Add real Deck check function --- functions/checks.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/functions/checks.sh b/functions/checks.sh index 4a2961d1..5934d265 100644 --- a/functions/checks.sh +++ b/functions/checks.sh @@ -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.