Update Mangohud

This commit is contained in:
rocknix
2025-09-03 13:01:56 +00:00
parent 3cc192cc4a
commit d3226ddc52
2 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
# Copyright (C) 2025-present ROCKNIX (https://github.com/ROCKNIX)
PKG_NAME="mangohud"
PKG_VERSION="0faf8b9d4e0bbd218fb6334e54bc7197c7451c2b"
PKG_VERSION="11a92acdf2c30100f6224a1e9618f1180dac354e"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/flightlessmango/MangoHud"
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"

View File

@@ -22,7 +22,7 @@ if [ ! -n "$MHUD_SET" ]; then
fi
### Check that the value sent to manghud_set is a valid selection
if [[ "$MHUD_SET" != "on" && "$MHUD_SET" != "off" && "$MHUD_SET" != "toggle" && "$MHUD_SET" != "enabled" && "$MHUD_SET" != "disabled" ]]; then
if [[ "$MHUD_SET" != "on" && "$MHUD_SET" != "off" && "$MHUD_SET" != "toggle" && "$MHUD_SET" != "enable" && "$MHUD_SET" != "disable" ]]; then
echo "$MHUD_SET is not a valid choice, valid options are on | off | toggle, setting MangoHud to off."
MHUD_SET="off"
fi
@@ -33,11 +33,11 @@ MANGOHUD_CONF="MangoHud.conf"
case $MHUD_SET in
"disable")
set_setting "rocknix.mangohud.enabled" "0"
echo "Disabling MangoHud"
echo "Disabling MangoHud."
;;
"enable")
set_setting "rocknix.mangohud.enabled" "0"
echo "Enabling MangoHud"
set_setting "rocknix.mangohud.enabled" "1"
echo "Enabling MangoHud."
;;
"off")
sed -i '/no_display/c\no_display' ${CONF_DIR}/${MANGOHUD_CONF}