Merge pull request #1822 from r3claimer/next

Add MangoHud per game / system / emulator support
This commit is contained in:
r3claimer
2025-09-03 09:20:15 -07:00
committed by GitHub
4 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024 ROCKNIX (https://github.com/ROCKNIX)
@@ -7,5 +8,4 @@ cat <<EOF >/storage/.config/profile.d/001-device_config
DEVICE_HAS_TOUCHSCREEN="true"
DEVICE_NO_MAC="true"
DEVICE_GPU_OVERCLOCK="true"
DEVICE_MANGOHUD_SUPPORT="true"
EOF

View File

@@ -11,3 +11,8 @@ if [ ! -n "${MANGOHUD_SUPPORTED}" ]; then
MANGOHUD_SUPPORTED="0"
set_setting "rocknix.mangohud.enabled" "${MANGOHUD_SUPPORTED}"
fi
cat <<EOF >/storage/.config/profile.d/075-mangohud-supported
# Device Features
DEVICE_MANGOHUD_SUPPORT="true"
EOF

View File

@@ -395,7 +395,7 @@ ${VERBOSE} && log $0 "Set emulation performance mode to (${CPU_GOVERNOR})"
${CPU_GOVERNOR}
# Check for MangoHud support and turn MangoHud off by defualt, will add ES feature later
MANGOHUD_SUPPORTED=$(get_setting "rocknix.mangohud.enabled")
MANGOHUD_SUPPORTED=$(get_setting "rocknix.mangohud.enabled" "${PLATFORM}" "${ROMNAME##*/}")
if [ "${MANGOHUD_SUPPORTED}" = "1" ]; then
RUNTHIS="/usr/bin/mangohud ${RUNTHIS}"
${VERBOSE} && log $0 "Enabling MangoHud"

View File

@@ -2,7 +2,7 @@
# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX)
PKG_NAME="emulationstation"
PKG_VERSION="ed4a444c615af400974c24f5066a9f618ccbb3fd"
PKG_VERSION="dcc9960e7e7637605149f8c71281cc975b4092bf"
PKG_GIT_CLONE_BRANCH="master"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/ROCKNIX/emulationstation-next"