Fix Dolphin Variables

This commit is contained in:
rocknix
2025-09-25 15:23:48 +00:00
parent ec64d29b20
commit 667b63dc41
3 changed files with 8 additions and 8 deletions

View File

@@ -94,20 +94,20 @@ makeinstall_target() {
post_install() {
case ${DEVICE} in
RK3588)
DOLPHIN_PLATFORM="\${PLATFORM}"
EXPORTS="if [ ! -z 'lsmod | grep panthor' ]; then LD_LIBRARY_PATH='\/usr\/lib\/libmali-valhall-g610-g13p0-x11-gbm.so' PLATFORM='wayland'; else PLATFORM='x11'; fi"
DOLPHIN_BACKEND="\${DOLPHIN_BACKEND}"
EXPORTS="if [ ! -z 'lsmod | grep panthor' ]; then LD_LIBRARY_PATH='\/usr\/lib\/libmali-valhall-g610-g13p0-x11-gbm.so' DOLPHIN_BACKEND='wayland'; else DOLPHIN_BACKEND='x11'; fi"
;;
SM8250|SM8550|AMD64|RK3399)
DOLPHIN_PLATFORM="x11"
DOLPHIN_BACKEND="x11"
EXPORTS="export QT_QPA_PLATFORM=xcb"
;;
*)
DOLPHIN_PLATFORM="wayland"
DOLPHIN_BACKEND="wayland"
EXPORTS=""
;;
esac
sed -e "s/@DOLPHIN_PLATFORM@/${DOLPHIN_PLATFORM}/g" -i ${INSTALL}/usr/bin/start_dolphin_gc.sh
sed -e "s/@DOLPHIN_PLATFORM@/${DOLPHIN_PLATFORM}/g" -i ${INSTALL}/usr/bin/start_dolphin_wii.sh
sed -e "s/@DOLPHIN_BACKEND@/${DOLPHIN_BACKEND}/g" -i ${INSTALL}/usr/bin/start_dolphin_gc.sh
sed -e "s/@DOLPHIN_BACKEND@/${DOLPHIN_BACKEND}/g" -i ${INSTALL}/usr/bin/start_dolphin_wii.sh
sed -e "s/@GRENDERER@/${GRENDERER}/g" -i ${INSTALL}/usr/bin/start_dolphin_gc.sh
sed -e "s/@GRENDERER@/${GRENDERER}/g" -i ${INSTALL}/usr/bin/start_dolphin_wii.sh

View File

@@ -375,7 +375,7 @@ ln -sf /storage/.config/dolphin-emu /storage/.local/share/dolphin-emu
if [ ${DOLPHIN_CORE} = "dolphin-emu" ]; then
CMD="-b -a ${AUDIO_BACKEND}"
else
CMD="-p @DOLPHIN_PLATFORM@ -a ${AUDIO_BACKEND}"
CMD="-p @DOLPHIN_BACKEND@ -a ${AUDIO_BACKEND}"
fi
# Debugging info:

View File

@@ -361,7 +361,7 @@ ln -sf /storage/.config/dolphin-emu /storage/.local/share/dolphin-emu
if [ ${DOLPHIN_CORE} = "dolphin-emu" ]; then
CMD="-b -a ${AUDIO_BACKEND}"
else
CMD="-p @DOLPHIN_PLATFORM@ -a ${AUDIO_BACKEND}"
CMD="-p @DOLPHIN_BACKEND@ -a ${AUDIO_BACKEND}"
fi
# Debugging info: