mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
Add real Deck check function
This commit is contained in:
parent
3bb1706c26
commit
013892d203
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue