Merge pull request #1094 from brooksytech/dev
Add ES features to MelonDS and RPCS3
This commit is contained in:
commit
56c64d3c44
5 changed files with 67 additions and 10 deletions
|
@ -14,4 +14,39 @@ if [ ! -d "/storage/roms/savestates/nds" ]; then
|
|||
mkdir -p "/storage/roms/savestates/nds"
|
||||
fi
|
||||
|
||||
melonDS -f "${1}"
|
||||
#Emulation Station Features
|
||||
GAME=$(echo "${1}"| sed "s#^/.*/##")
|
||||
GRENDERER=$(get_setting graphics_backend nds "${GAME}")
|
||||
SUI=$(get_setting start_ui nds "${GAME}")
|
||||
VSYNC=$(get_setting vsync nds "${GAME}")
|
||||
|
||||
#Graphics Backend
|
||||
if [ "$GRENDERER" = "0" ]
|
||||
then
|
||||
sed -i '/^ScreenUseGL=/c\ScreenUseGL=0' /storage/.config/melonDS/melonDS.ini
|
||||
fi
|
||||
if [ "$GRENDERER" = "1" ]
|
||||
then
|
||||
sed -i '/^ScreenUseGL=/c\ScreenUseGL=1' /storage/.config/melonDS/melonDS.ini
|
||||
fi
|
||||
|
||||
#Vsync
|
||||
if [ "$VSYNC" = "0" ]
|
||||
then
|
||||
sed -i '/^ScreenVSync=/c\ScreenVSync=0' /storage/.config/melonDS/melonDS.ini
|
||||
fi
|
||||
if [ "$VSYNC" = "1" ]
|
||||
then
|
||||
sed -i '/^ScreenVSync=/c\ScreenVSync=1' /storage/.config/melonDS/melonDS.ini
|
||||
fi
|
||||
|
||||
#Set QT Platform to Wayland
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
|
||||
#Run MelonDS emulator
|
||||
if [ "$SUI" = "1" ]
|
||||
then
|
||||
/usr/bin/melonDS
|
||||
else
|
||||
/usr/bin/melonDS -f "${1}"
|
||||
fi
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
||||
|
||||
PKG_NAME="rpcs3sa"
|
||||
PKG_VERSION="a9f399d6cc1e0f61608640e30721d67cb54985e5"
|
||||
PKG_VERSION="6b30cdac09e03efa33e9d47a39901a17cd04ae55"
|
||||
PKG_ARCH="x86_64"
|
||||
PKG_LICENSE="GPL-2.0-or-later"
|
||||
PKG_SITE="https://rpcs3.net"
|
||||
|
|
|
@ -18,9 +18,18 @@ fi
|
|||
rm -rf /storage/.config/rpcs3/dev_flash
|
||||
ln -sf /storage/roms/bios/rpcs3/dev_flash /storage/.config/rpcs3/dev_flash
|
||||
|
||||
#Set QT enviornment to xwayland
|
||||
export QT_QPA_PLATFORM=xcb
|
||||
rr_audio.sh pulseaudio
|
||||
export SDL_AUDIODRIVER=pulseaudio
|
||||
#Emulation Station Features
|
||||
GAME=$(echo "${1}"| sed "s#^/.*/##")
|
||||
SUI=$(get_setting start_ui ps3 "${GAME}")
|
||||
|
||||
rpcs3 --no-gui "${1}"
|
||||
#Run Rpcs3 emulator
|
||||
if [ "$SUI" = "1" ]
|
||||
then
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
/usr/bin/rpcs3
|
||||
else
|
||||
export QT_QPA_PLATFORM=xcb
|
||||
rr_audio.sh pulseaudio
|
||||
export SDL_AUDIODRIVER=pulseaudio
|
||||
/usr/bin/rpcs3 --no-gui "${1}"
|
||||
fi
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
||||
|
||||
PKG_NAME="yuzusa"
|
||||
PKG_VERSION="8f3e2a1b48a4f83c90a3b8bf10dd1dc661a69958"
|
||||
PKG_VERSION="ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c"
|
||||
PKG_ARCH="x86_64"
|
||||
PKG_LICENSE="GPLv3"
|
||||
PKG_SITE="https://github.com/yuzu-emu/yuzu"
|
||||
|
|
|
@ -253,10 +253,23 @@
|
|||
</feature>
|
||||
</features>
|
||||
</emulator>
|
||||
<emulator name="melondssa">
|
||||
<features>
|
||||
<feature name="graphics backend">
|
||||
<choice name="software" value="0"/>
|
||||
<choice name="opengl" value="1"/>
|
||||
</feature>
|
||||
<feature name="start ui">
|
||||
<choice name="off" value="0"/>
|
||||
<choice name="on" value="1"/>
|
||||
</feature>
|
||||
</features>
|
||||
</emulator>
|
||||
<emulator name="rpcs3sa">
|
||||
<features>
|
||||
<feature name="internal resolution">
|
||||
<choice name="720x480" value="1"/>
|
||||
<feature name="start ui">
|
||||
<choice name="off" value="0"/>
|
||||
<choice name="on" value="1"/>
|
||||
</feature>
|
||||
</features>
|
||||
</emulator>
|
||||
|
|
Loading…
Reference in a new issue