DolphinSA ES options
This commit is contained in:
parent
28b857391b
commit
cb205308f6
19 changed files with 608 additions and 45 deletions
|
@ -0,0 +1,27 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/retrogame_joypad
|
||||||
|
Extension = Classic
|
||||||
|
Source = 1
|
||||||
|
Classic/Buttons/A = Button 1
|
||||||
|
Classic/Buttons/B = Button 0
|
||||||
|
Classic/Buttons/X = Button 2
|
||||||
|
Classic/Buttons/Y = Button 3
|
||||||
|
Classic/Buttons/ZL = Button 6
|
||||||
|
Classic/Buttons/ZR = Button 7
|
||||||
|
Classic/Buttons/- = Button 8
|
||||||
|
Classic/Buttons/+ = Button 9
|
||||||
|
Classic/Left Stick/Up = Axis 1-
|
||||||
|
Classic/Left Stick/Down = Axis 1+
|
||||||
|
Classic/Left Stick/Left = Axis 0-
|
||||||
|
Classic/Left Stick/Right = Axis 0+
|
||||||
|
Classic/Right Stick/Up = Axis 3-
|
||||||
|
Classic/Right Stick/Down = Axis 3+
|
||||||
|
Classic/Right Stick/Left = Axis 2-
|
||||||
|
Classic/Right Stick/Right = Axis 2+
|
||||||
|
Classic/Triggers/L = Button 4
|
||||||
|
Classic/Triggers/R = Button 5
|
||||||
|
Classic/D-Pad/Up = Button 13
|
||||||
|
Classic/D-Pad/Down = Button 14
|
||||||
|
Classic/D-Pad/Left = Button 15
|
||||||
|
Classic/D-Pad/Right = Button 16
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/retrogame_joypad
|
||||||
|
Extension = Nunchuk
|
||||||
|
Buttons/A = Button 0
|
||||||
|
Buttons/B = Button 1
|
||||||
|
Buttons/1 = Button 3
|
||||||
|
Buttons/2 = Button 2
|
||||||
|
Buttons/- = Button 8
|
||||||
|
Buttons/+ = Button 9
|
||||||
|
D-Pad/Up = Button 13
|
||||||
|
D-Pad/Down = Button 14
|
||||||
|
D-Pad/Left = Button 15
|
||||||
|
D-Pad/Right = Button 16
|
||||||
|
Shake/X = Button 6
|
||||||
|
Shake/Y = Button 6
|
||||||
|
Shake/Z = Button 6
|
||||||
|
Nunchuk/Buttons/C = Button 5
|
||||||
|
Nunchuk/Buttons/Z = Button 4
|
||||||
|
Nunchuk/Stick/Up = Axis 1-
|
||||||
|
Nunchuk/Stick/Down = Axis 1+
|
||||||
|
Nunchuk/Stick/Left = Axis 0-
|
||||||
|
Nunchuk/Stick/Right = Axis 0+
|
||||||
|
Nunchuk/Shake/X = Button 7
|
||||||
|
Nunchuk/Shake/Y = Button 7
|
||||||
|
Nunchuk/Shake/Z = Button 7
|
|
@ -0,0 +1,15 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/retrogame_joypad
|
||||||
|
Buttons/A = Button 0
|
||||||
|
Buttons/B = Button 1
|
||||||
|
Buttons/1 = Button 3
|
||||||
|
Buttons/2 = Button 2
|
||||||
|
Buttons/- = Button 8
|
||||||
|
Buttons/+ = Button 9
|
||||||
|
D-Pad/Up = Button 13
|
||||||
|
D-Pad/Down = Button 14
|
||||||
|
D-Pad/Left = Button 15
|
||||||
|
D-Pad/Right = Button 16
|
||||||
|
Shake/X = Button 4
|
||||||
|
Shake/Y = Button 4
|
||||||
|
Shake/Z = Button 4
|
|
@ -1,12 +1,12 @@
|
||||||
[GCPad1]
|
[GCPad1]
|
||||||
Device = evdev/0/retrogame_joypad
|
Device = evdev/0/retrogame_joypad
|
||||||
Buttons/A = Button 0
|
Buttons/A = Button 1
|
||||||
Buttons/B = Button 1
|
Buttons/B = Button 0
|
||||||
Buttons/Start = Button 9
|
Buttons/Start = Button 8
|
||||||
Buttons/X = Button 3
|
Buttons/X = Button 2
|
||||||
Buttons/Y = Button 2
|
Buttons/Y = Button 3
|
||||||
Buttons/Z = Button 7
|
Buttons/Z = Button 7
|
||||||
Buttons/Hotkey = Button 8
|
Buttons/Hotkey = Button 9
|
||||||
C-Stick/Dead Zone = 25.000000000000000
|
C-Stick/Dead Zone = 25.000000000000000
|
||||||
C-Stick/Down = Axis 3+
|
C-Stick/Down = Axis 3+
|
||||||
C-Stick/Left = Axis 2-
|
C-Stick/Left = Axis 2-
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/retrogame_joypad
|
||||||
|
Extension = Classic
|
||||||
|
Source = 1
|
||||||
|
Classic/Buttons/A = Button 1
|
||||||
|
Classic/Buttons/B = Button 0
|
||||||
|
Classic/Buttons/X = Button 2
|
||||||
|
Classic/Buttons/Y = Button 3
|
||||||
|
Classic/Buttons/ZL = Button 6
|
||||||
|
Classic/Buttons/ZR = Button 7
|
||||||
|
Classic/Buttons/- = Button 8
|
||||||
|
Classic/Buttons/+ = Button 9
|
||||||
|
Classic/Left Stick/Up = Axis 1-
|
||||||
|
Classic/Left Stick/Down = Axis 1+
|
||||||
|
Classic/Left Stick/Left = Axis 0-
|
||||||
|
Classic/Left Stick/Right = Axis 0+
|
||||||
|
Classic/Right Stick/Up = Axis 3-
|
||||||
|
Classic/Right Stick/Down = Axis 3+
|
||||||
|
Classic/Right Stick/Left = Axis 2-
|
||||||
|
Classic/Right Stick/Right = Axis 2+
|
||||||
|
Classic/Triggers/L = Button 4
|
||||||
|
Classic/Triggers/R = Button 5
|
||||||
|
Classic/D-Pad/Up = Button 13
|
||||||
|
Classic/D-Pad/Down = Button 14
|
||||||
|
Classic/D-Pad/Left = Button 15
|
||||||
|
Classic/D-Pad/Right = Button 16
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/retrogame_joypad
|
||||||
|
Extension = Nunchuk
|
||||||
|
Buttons/A = Button 0
|
||||||
|
Buttons/B = Button 1
|
||||||
|
Buttons/1 = Button 3
|
||||||
|
Buttons/2 = Button 2
|
||||||
|
Buttons/- = Button 8
|
||||||
|
Buttons/+ = Button 9
|
||||||
|
D-Pad/Up = Button 13
|
||||||
|
D-Pad/Down = Button 14
|
||||||
|
D-Pad/Left = Button 15
|
||||||
|
D-Pad/Right = Button 16
|
||||||
|
Shake/X = Button 6
|
||||||
|
Shake/Y = Button 6
|
||||||
|
Shake/Z = Button 6
|
||||||
|
Nunchuk/Buttons/C = Button 5
|
||||||
|
Nunchuk/Buttons/Z = Button 4
|
||||||
|
Nunchuk/Stick/Up = Axis 1-
|
||||||
|
Nunchuk/Stick/Down = Axis 1+
|
||||||
|
Nunchuk/Stick/Left = Axis 0-
|
||||||
|
Nunchuk/Stick/Right = Axis 0+
|
||||||
|
Nunchuk/Shake/X = Button 7
|
||||||
|
Nunchuk/Shake/Y = Button 7
|
||||||
|
Nunchuk/Shake/Z = Button 7
|
|
@ -0,0 +1,15 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/retrogame_joypad
|
||||||
|
Buttons/A = Button 0
|
||||||
|
Buttons/B = Button 1
|
||||||
|
Buttons/1 = Button 3
|
||||||
|
Buttons/2 = Button 2
|
||||||
|
Buttons/- = Button 8
|
||||||
|
Buttons/+ = Button 9
|
||||||
|
D-Pad/Up = Button 13
|
||||||
|
D-Pad/Down = Button 14
|
||||||
|
D-Pad/Left = Button 15
|
||||||
|
D-Pad/Right = Button 16
|
||||||
|
Shake/X = Button 4
|
||||||
|
Shake/Y = Button 4
|
||||||
|
Shake/Z = Button 4
|
|
@ -26,6 +26,4 @@ Main Stick/Modifier/Range = 50.000000000000000
|
||||||
Main Stick/Right = Axis 0+
|
Main Stick/Right = Axis 0+
|
||||||
Main Stick/Up = Axis 1-
|
Main Stick/Up = Axis 1-
|
||||||
Triggers/L = Axis 2+
|
Triggers/L = Axis 2+
|
||||||
Triggers/L = Axis 2+
|
|
||||||
Triggers/R = Axis 5+
|
|
||||||
Triggers/R = Axis 5+
|
Triggers/R = Axis 5+
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/Microsoft X-Box 360 pad
|
||||||
|
Extension = Classic
|
||||||
|
Source = 1
|
||||||
|
Classic/Buttons/A = Button 1
|
||||||
|
Classic/Buttons/B = Button 0
|
||||||
|
Classic/Buttons/X = Button 3
|
||||||
|
Classic/Buttons/Y = Button 2
|
||||||
|
Classic/Buttons/ZL = Axis 2+
|
||||||
|
Classic/Buttons/ZR = Axis 5+
|
||||||
|
Classic/Buttons/- = Button 6
|
||||||
|
Classic/Buttons/+ = Button 7
|
||||||
|
Classic/Buttons/Home = Button 8
|
||||||
|
Classic/Left Stick/Up = Axis 1-
|
||||||
|
Classic/Left Stick/Down = Axis 1+
|
||||||
|
Classic/Left Stick/Left = Axis 0-
|
||||||
|
Classic/Left Stick/Right = Axis 0+
|
||||||
|
Classic/Right Stick/Up = Axis 4-
|
||||||
|
Classic/Right Stick/Down = Axis 4+
|
||||||
|
Classic/Right Stick/Left = Axis 3-
|
||||||
|
Classic/Right Stick/Right = Axis 3+
|
||||||
|
Classic/Triggers/L = Button 4
|
||||||
|
Classic/Triggers/R = Button 5
|
||||||
|
Classic/D-Pad/Up = Axis 7-
|
||||||
|
Classic/D-Pad/Down = Axis 7+
|
||||||
|
Classic/D-Pad/Left = Axis 6-
|
||||||
|
Classic/D-Pad/Right = Axis 6+
|
|
@ -0,0 +1,26 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/Microsoft X-Box 360 pad
|
||||||
|
Extension = Nunchuk
|
||||||
|
Buttons/A = Button 0
|
||||||
|
Buttons/B = Button 1
|
||||||
|
Buttons/1 = Button 2
|
||||||
|
Buttons/2 = Button 3
|
||||||
|
Buttons/- = Button 6
|
||||||
|
Buttons/+ = Button 7
|
||||||
|
D-Pad/Up = Axis 7-
|
||||||
|
D-Pad/Down = Axis 7+
|
||||||
|
D-Pad/Left = Axis 6-
|
||||||
|
D-Pad/Right = Axis 6+
|
||||||
|
Buttons/Home = Button 8
|
||||||
|
Shake/X = Button 4
|
||||||
|
Shake/Y = Button 4
|
||||||
|
Shake/Z = Button 4
|
||||||
|
Nunchuk/Buttons/C = Button 5
|
||||||
|
Nunchuk/Buttons/Z = Axis 5+
|
||||||
|
Nunchuk/Stick/Up = Axis 1-
|
||||||
|
Nunchuk/Stick/Down = Axis 1+
|
||||||
|
Nunchuk/Stick/Left = Axis 0-
|
||||||
|
Nunchuk/Stick/Right = Axis 0+
|
||||||
|
Nunchuk/Shake/X = Axis 2+
|
||||||
|
Nunchuk/Shake/Y = Axis 2+
|
||||||
|
Nunchuk/Shake/Z = Axis 2+
|
|
@ -0,0 +1,16 @@
|
||||||
|
[Wiimote1]
|
||||||
|
Device = evdev/0/Microsoft X-Box 360 pad
|
||||||
|
Buttons/A = Button 0
|
||||||
|
Buttons/B = Button 1
|
||||||
|
Buttons/1 = Button 2
|
||||||
|
Buttons/2 = Button 3
|
||||||
|
Buttons/- = Button 6
|
||||||
|
Buttons/+ = Button 7
|
||||||
|
Buttons/Home = Button 8
|
||||||
|
Shake/X = Button 4
|
||||||
|
Shake/Y = Button 4
|
||||||
|
Shake/Z = Button 4
|
||||||
|
D-Pad/Up = Axis 7-
|
||||||
|
D-Pad/Down = Axis 7+
|
||||||
|
D-Pad/Left = Axis 6-
|
||||||
|
D-Pad/Right = Axis 6+
|
|
@ -10,7 +10,7 @@ case ${DEVICE} in
|
||||||
RG552|handheld)
|
RG552|handheld)
|
||||||
PKG_SITE="https://github.com/dolphin-emu/dolphin"
|
PKG_SITE="https://github.com/dolphin-emu/dolphin"
|
||||||
PKG_URL="${PKG_SITE}.git"
|
PKG_URL="${PKG_SITE}.git"
|
||||||
PKG_VERSION="d3718b1b81e64db540005f3ced6a0edfde76f411"
|
PKG_VERSION="0210d115c22a1c5745c76eaefe38b5d0af3247f9"
|
||||||
PKG_PATCH_DIRS+=" wayland"
|
PKG_PATCH_DIRS+=" wayland"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -67,7 +67,8 @@ makeinstall_target() {
|
||||||
cp -rf ${PKG_BUILD}/.${TARGET_NAME}/Binaries/dolphin* ${INSTALL}/usr/bin
|
cp -rf ${PKG_BUILD}/.${TARGET_NAME}/Binaries/dolphin* ${INSTALL}/usr/bin
|
||||||
cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
|
cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
|
||||||
|
|
||||||
chmod +x ${INSTALL}/usr/bin/start_dolphin.sh
|
chmod +x ${INSTALL}/usr/bin/start_dolphin_gc.sh
|
||||||
|
chmod +x ${INSTALL}/usr/bin/start_dolphin_wii.sh
|
||||||
|
|
||||||
mkdir -p ${INSTALL}/usr/config/dolphin-emu
|
mkdir -p ${INSTALL}/usr/config/dolphin-emu
|
||||||
cp -rf ${PKG_BUILD}/Data/Sys/* ${INSTALL}/usr/config/dolphin-emu
|
cp -rf ${PKG_BUILD}/Data/Sys/* ${INSTALL}/usr/config/dolphin-emu
|
||||||
|
@ -84,5 +85,8 @@ post_install() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
sed -e "s/@DOLPHIN_PLATFORM@/${DOLPHIN_PLATFORM}/g" \
|
sed -e "s/@DOLPHIN_PLATFORM@/${DOLPHIN_PLATFORM}/g" \
|
||||||
-i ${INSTALL}/usr/bin/start_dolphin.sh
|
-i ${INSTALL}/usr/bin/start_dolphin_gc.sh
|
||||||
|
sed -e "s/@DOLPHIN_PLATFORM@/${DOLPHIN_PLATFORM}/g" \
|
||||||
|
-i ${INSTALL}/usr/bin/start_dolphin_wii.sh
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
||||||
|
|
||||||
. /etc/profile
|
|
||||||
|
|
||||||
if [ ! -d "/storage/.config/dolphin-emu" ]; then
|
|
||||||
mkdir -p "/storage/.config/dolphin-emu"
|
|
||||||
cp -r "/usr/config/dolphin-emu" "/storage/.config/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "/storage/.config/dolphin-emu/StateSaves" ]; then
|
|
||||||
mkdir -p "/storage/.config/dolphin-emu/StateSaves"
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf /storage/.local/share/dolphin-emu
|
|
||||||
|
|
||||||
ln -sfv /storage/.config/dolphin-emu /storage/.local/share/dolphin-emu
|
|
||||||
|
|
||||||
/usr/bin/dolphin-emu-nogui -p @DOLPHIN_PLATFORM@ -a HLE -e "${1}"
|
|
129
packages/games/emulators/dolphinsa/scripts/start_dolphin_gc.sh
Executable file
129
packages/games/emulators/dolphinsa/scripts/start_dolphin_gc.sh
Executable file
|
@ -0,0 +1,129 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
|
||||||
|
#Check if dolphin-emu exists in .config
|
||||||
|
if [ ! -d "/storage/.config/dolphin-emu" ]; then
|
||||||
|
mkdir -p "/storage/.config/dolphin-emu"
|
||||||
|
cp -r "/usr/config/dolphin-emu" "/storage/.config/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Link Save States to /roms/savestates
|
||||||
|
if [ ! -d "/storage/roms/savestates/gamecube/" ]; then
|
||||||
|
mkdir -p "/storage/roms/savestates/gamecube/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf /storage/.config/dolphin-emu/StateSaves
|
||||||
|
ln -sf /storage/roms/savestates/gamecube /storage/.config/dolphin-emu/StateSaves
|
||||||
|
|
||||||
|
#Emulation Station Features
|
||||||
|
GAME=$(echo "${1}"| sed "s#^/.*/##")
|
||||||
|
AA=$(get_setting anti_aliasing gamecube "${GAME}")
|
||||||
|
ASPECT=$(get_setting aspect_ratio gamecube "${GAME}")
|
||||||
|
RENDERER=$(get_setting graphics_backend gamecube "${GAME}")
|
||||||
|
IRES=$(get_setting internal_resolution gamecube "${GAME}")
|
||||||
|
FPS=$(get_setting show_fps gamecube "${GAME}")
|
||||||
|
|
||||||
|
#Anti-Aliasing
|
||||||
|
if [ "$AA" = "0" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 0' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "2m" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 2' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "2s" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 2' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = True' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "4m" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 4' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "4s" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 4' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = True' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "8m" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 8' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "8s" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 8' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = True' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Aspect Ratio
|
||||||
|
if [ "$ASPECT" = "0" ]
|
||||||
|
then
|
||||||
|
sed -i '/AspectRatio/c\AspectRatio = 0' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$ASPECT" = "1" ]
|
||||||
|
then
|
||||||
|
sed -i '/AspectRatio/c\AspectRatio = 1' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$ASPECT" = "2" ]
|
||||||
|
then
|
||||||
|
sed -i '/AspectRatio/c\AspectRatio = 2' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$ASPECT" = "3" ]
|
||||||
|
then
|
||||||
|
sed -i '/AspectRatio/c\AspectRatio = 3' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Video Backend
|
||||||
|
if [ "$RENDERER" = "opengl" ]
|
||||||
|
then
|
||||||
|
sed -i '/GFXBackend/c\GFXBackend = OGL' /storage/.config/dolphin-emu/Dolphin.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$RENDERER" = "vulkan" ]
|
||||||
|
then
|
||||||
|
sed -i '/GFXBackend/c\GFXBackend = Vulkan' /storage/.config/dolphin-emu/Dolphin.ini
|
||||||
|
fi
|
||||||
|
if [ "$RENDERER" = "software" ]
|
||||||
|
then
|
||||||
|
sed -i '/GFXBackend/c\GFXBackend = Software Renderer' /storage/.config/dolphin-emu/Dolphin.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Internal Resolution
|
||||||
|
if [ "$IRES" = "1" ]
|
||||||
|
then
|
||||||
|
sed -i '/InternalResolution/c\InternalResolution = 1' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$IRES" = "2" ]
|
||||||
|
then
|
||||||
|
sed -i '/InternalResolution/c\InternalResolution = 2' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$IRES" = "3" ]
|
||||||
|
then
|
||||||
|
sed -i '/InternalResolution/c\InternalResolution = 3' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Show FPS
|
||||||
|
if [ "$FPS" = "false" ]
|
||||||
|
then
|
||||||
|
sed -i '/ShowFPS/c\ShowFPS = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$FPS" = "true" ]
|
||||||
|
then
|
||||||
|
sed -i '/ShowFPS/c\ShowFPS = true' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Link .config/dolphin-emu to .local
|
||||||
|
rm -rf /storage/.local/share/dolphin-emu
|
||||||
|
ln -sf /storage/.config/dolphin-emu /storage/.local/share/dolphin-emu
|
||||||
|
|
||||||
|
#Run Dolphin emulator
|
||||||
|
/usr/bin/dolphin-emu-nogui -p @DOLPHIN_PLATFORM@ -a HLE -e "${1}"
|
149
packages/games/emulators/dolphinsa/scripts/start_dolphin_wii.sh
Executable file
149
packages/games/emulators/dolphinsa/scripts/start_dolphin_wii.sh
Executable file
|
@ -0,0 +1,149 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
|
||||||
|
#Check if dolphin-emu exists in .config
|
||||||
|
if [ ! -d "/storage/.config/dolphin-emu" ]; then
|
||||||
|
mkdir -p "/storage/.config/dolphin-emu"
|
||||||
|
cp -r "/usr/config/dolphin-emu" "/storage/.config/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Check if WiiControllerProfiles exists in .config/dolphin-emu
|
||||||
|
if [ ! -d "/storage/.config/dolphin-emu/WiiControllerProfiles" ]; then
|
||||||
|
cp -r "/usr/config/dolphin-emu" "/storage/.config/dolphin-emu/WiiControllerProfiles"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Link Save States to /roms/savestates/wii
|
||||||
|
if [ ! -d "/storage/roms/savestates/wii/" ]; then
|
||||||
|
mkdir -p "/storage/roms/savestates/wii/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf /storage/.config/dolphin-emu/StateSaves
|
||||||
|
ln -sf /storage/roms/savestates/wii /storage/.config/dolphin-emu/StateSaves
|
||||||
|
|
||||||
|
#Emulation Station options
|
||||||
|
GAME=$(echo "${1}"| sed "s#^/.*/##")
|
||||||
|
AA=$(get_setting anti_aliasing wii "${GAME}")
|
||||||
|
ASPECT=$(get_setting aspect_ratio wii "${GAME}")
|
||||||
|
RENDERER=$(get_setting graphics_backend wii "${GAME}")
|
||||||
|
IRES=$(get_setting internal_resolution wii "${GAME}")
|
||||||
|
FPS=$(get_setting show_fps wii "${GAME}")
|
||||||
|
CON=$(get_setting wii_controller_profile wii "${GAME}")
|
||||||
|
|
||||||
|
#Anti-Aliasing
|
||||||
|
if [ "$AA" = "0" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 0' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "2m" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 2' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "2s" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 2' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = True' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "4m" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 4' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "4s" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 4' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = True' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "8m" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 8' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$AA" = "8s" ]
|
||||||
|
then
|
||||||
|
sed -i '/MSAA/c\MSAA = 8' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
sed -i '/SSAA/c\SSAA = True' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Aspect Ratio
|
||||||
|
if [ "$ASPECT" = "0" ]
|
||||||
|
then
|
||||||
|
sed -i '/AspectRatio/c\AspectRatio = 0' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$ASPECT" = "1" ]
|
||||||
|
then
|
||||||
|
sed -i '/AspectRatio/c\AspectRatio = 1' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$ASPECT" = "2" ]
|
||||||
|
then
|
||||||
|
sed -i '/AspectRatio/c\AspectRatio = 2' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$ASPECT" = "3" ]
|
||||||
|
then
|
||||||
|
sed -i '/AspectRatio/c\AspectRatio = 3' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Video Backend
|
||||||
|
if [ "$RENDERER" = "opengl" ]
|
||||||
|
then
|
||||||
|
sed -i '/GFXBackend/c\GFXBackend = OGL' /storage/.config/dolphin-emu/Dolphin.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$RENDERER" = "vulkan" ]
|
||||||
|
then
|
||||||
|
sed -i '/GFXBackend/c\GFXBackend = Vulkan' /storage/.config/dolphin-emu/Dolphin.ini
|
||||||
|
fi
|
||||||
|
if [ "$RENDERER" = "software" ]
|
||||||
|
then
|
||||||
|
sed -i '/GFXBackend/c\GFXBackend = Software Renderer' /storage/.config/dolphin-emu/Dolphin.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Internal Resolution
|
||||||
|
if [ "$IRES" = "1" ]
|
||||||
|
then
|
||||||
|
sed -i '/InternalResolution/c\InternalResolution = 1' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$IRES" = "2" ]
|
||||||
|
then
|
||||||
|
sed -i '/InternalResolution/c\InternalResolution = 2' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$IRES" = "3" ]
|
||||||
|
then
|
||||||
|
sed -i '/InternalResolution/c\InternalResolution = 3' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Show FPS
|
||||||
|
if [ "$FPS" = "true" ]
|
||||||
|
then
|
||||||
|
sed -i '/ShowFPS/c\ShowFPS = True' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
if [ "$FPS" = "false" ]
|
||||||
|
then
|
||||||
|
sed -i '/ShowFPS/c\ShowFPS = False' /storage/.config/dolphin-emu/GFX.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Wii Controller Profile
|
||||||
|
if [ "$CON" = "remote" ]
|
||||||
|
then
|
||||||
|
cp -r /storage/.config/dolphin-emu/WiiControllerProfiles/remote.ini /storage/.config/dolphin-emu/WiimoteNew.ini
|
||||||
|
fi
|
||||||
|
if [ "$CON" = "nunchuck" ]
|
||||||
|
then
|
||||||
|
cp -r /storage/.config/dolphin-emu/WiiControllerProfiles/nunchuck.ini /storage/.config/dolphin-emu/WiimoteNew.ini
|
||||||
|
fi
|
||||||
|
if [ "$CON" = "classic" ]
|
||||||
|
then
|
||||||
|
cp -r /storage/.config/dolphin-emu/WiiControllerProfiles/classic.ini /storage/.config/dolphin-emu/WiimoteNew.ini
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Link .config/dolphin-emu to .local
|
||||||
|
rm -rf /storage/.local/share/dolphin-emu
|
||||||
|
ln -sf /storage/.config/dolphin-emu /storage/.local/share/dolphin-emu
|
||||||
|
|
||||||
|
#Run Dolphin emulator
|
||||||
|
/usr/bin/dolphin-emu-nogui -p @DOLPHIN_PLATFORM@ -a HLE -e "${1}"
|
|
@ -281,13 +281,19 @@ then
|
||||||
RUNTHIS='${TBASH} /usr/bin/start_pcsx2.sh "${ROMNAME}"'
|
RUNTHIS='${TBASH} /usr/bin/start_pcsx2.sh "${ROMNAME}"'
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"gamecube"|"wii")
|
"gamecube")
|
||||||
jslisten set "-9 dolphin-emu-nogui"
|
jslisten set "-9 dolphin-emu-nogui"
|
||||||
if [ "$EMU" = "dolphinsa" ]; then
|
if [ "$EMU" = "dolphinsa-gc" ]; then
|
||||||
RUNTHIS='${TBASH} /usr/bin/start_dolphin.sh "${ROMNAME}"'
|
RUNTHIS='${TBASH} /usr/bin/start_dolphin_gc.sh "${ROMNAME}"'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
"wii")
|
||||||
|
jslisten set "-9 dolphin-emu-nogui"
|
||||||
|
if [ "$EMU" = "dolphinsa-wii" ]; then
|
||||||
|
RUNTHIS='${TBASH} /usr/bin/start_dolphin_wii.sh "${ROMNAME}"'
|
||||||
|
fi
|
||||||
|
;;
|
||||||
"mplayer")
|
"mplayer")
|
||||||
jslisten set "mpv"
|
jslisten set "mpv"
|
||||||
RUNTHIS='${TBASH} /usr/bin/mpv_video.sh "${ROMNAME}"'
|
RUNTHIS='${TBASH} /usr/bin/mpv_video.sh "${ROMNAME}"'
|
||||||
|
|
|
@ -21,6 +21,77 @@
|
||||||
</feature>
|
</feature>
|
||||||
</features>
|
</features>
|
||||||
</emulator>
|
</emulator>
|
||||||
|
<emulator name="dolphinsa-gc">
|
||||||
|
<features>
|
||||||
|
<feature name="anti aliasing">
|
||||||
|
<choice name="off" value="0"/>
|
||||||
|
<choice name="2x MSAA" value="2m"/>
|
||||||
|
<choice name="2x SSAA" value="2s"/>
|
||||||
|
<choice name="4x MSAA" value="4m"/>
|
||||||
|
<choice name="4x SSAA" value="4s"/>
|
||||||
|
<choice name="8x MSAA" value="8s"/>
|
||||||
|
<choice name="8x SSAA" value="8m"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="aspect ratio">
|
||||||
|
<choice name="default" value="0"/>
|
||||||
|
<choice name="16/9" value="1"/>
|
||||||
|
<choice name="4/3" value="2"/>
|
||||||
|
<choice name="stretch" value="3"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="graphics backend">
|
||||||
|
<choice name="opengl" value="opengl"/>
|
||||||
|
<choice name="vulkan" value="vulkan"/>
|
||||||
|
<choice name="software" value="software"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="internal resolution">
|
||||||
|
<choice name="native (480p)" value="1"/>
|
||||||
|
<choice name="2x (720P)" value="2"/>
|
||||||
|
<choice name="3x (1080P)" value="3"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="show fps">
|
||||||
|
<choice name="yes" value="true"/>
|
||||||
|
<choice name="no" value="false"/>
|
||||||
|
</feature>
|
||||||
|
</features>
|
||||||
|
</emulator>
|
||||||
|
<emulator name="dolphinsa-wii">
|
||||||
|
<features>
|
||||||
|
<feature name="anti aliasing">
|
||||||
|
<choice name="off" value="0"/>
|
||||||
|
<choice name="2x MSAA" value="2m"/>
|
||||||
|
<choice name="2x SSAA" value="2s"/>
|
||||||
|
<choice name="4x MSAA" value="4m"/>
|
||||||
|
<choice name="4x SSAA" value="4s"/>
|
||||||
|
<choice name="8x MSAA" value="8s"/>
|
||||||
|
<choice name="8x SSAA" value="8m"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="aspect ratio">
|
||||||
|
<choice name="default" value="0"/>
|
||||||
|
<choice name="16/9" value="1"/>
|
||||||
|
<choice name="4/3" value="2"/>
|
||||||
|
<choice name="stretch" value="3"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="graphics backend">
|
||||||
|
<choice name="opengl" value="opengl"/>
|
||||||
|
<choice name="vulkan" value="vulkan"/>
|
||||||
|
<choice name="software" value="software"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="internal resolution">
|
||||||
|
<choice name="native (480p)" value="1"/>
|
||||||
|
<choice name="2x (720P)" value="2"/>
|
||||||
|
<choice name="3x (1080P)" value="3"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="show fps">
|
||||||
|
<choice name="yes" value="true"/>
|
||||||
|
<choice name="no" value="false"/>
|
||||||
|
</feature>
|
||||||
|
<feature name="wii controller profile">
|
||||||
|
<choice name="Wiimote" value="remote"/>
|
||||||
|
<choice name="Wiimote w/ Nunchuck" value="nunchuck"/>
|
||||||
|
<choice name="Classic Controller" value="classic"/>
|
||||||
|
</feature>
|
||||||
|
</features>
|
||||||
|
</emulator>
|
||||||
<emulator name="retroarch" features="ratio, smooth, shaders, pixel_perfect, latency_reduction, game_translation">
|
<emulator name="retroarch" features="ratio, smooth, shaders, pixel_perfect, latency_reduction, game_translation">
|
||||||
<cores>
|
<cores>
|
||||||
<core name="2048" features="netplay, rewind, autosave" />
|
<core name="2048" features="netplay, rewind, autosave" />
|
||||||
|
|
|
@ -779,14 +779,38 @@
|
||||||
<release>2001</release>
|
<release>2001</release>
|
||||||
<hardware>console</hardware>
|
<hardware>console</hardware>
|
||||||
<path>/storage/roms/gamecube</path>
|
<path>/storage/roms/gamecube</path>
|
||||||
<extension>.gcm .GCM .iso .ISO .gcz .GCZ .ciso .CISO .wbfs .WBFS .rvz .RVZ</extension>
|
<extension>.gcm .GCM .iso .ISO .gcz .GCZ .ciso .CISO .wbfs .WBFS .rvz .RVZ .dol .DOL</extension>
|
||||||
<command>/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers="%CONTROLLERSCONFIG%"</command>
|
<command>/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers="%CONTROLLERSCONFIG%"</command>
|
||||||
<platform>gc</platform>
|
<platform>gc</platform>
|
||||||
<theme>gc</theme>
|
<theme>gc</theme>
|
||||||
<emulators>
|
<emulators>
|
||||||
<emulator name="dolphinsa">
|
<emulator name="dolphinsa-gc">
|
||||||
<cores>
|
<cores>
|
||||||
<core default="true">dolphinsa</core>
|
<core default="true">dolphinsa-gc</core>
|
||||||
|
</cores>
|
||||||
|
</emulator>
|
||||||
|
<emulator name="retroarch">
|
||||||
|
<cores>
|
||||||
|
<core>dolphin</core>
|
||||||
|
</cores>
|
||||||
|
</emulator>
|
||||||
|
</emulators>
|
||||||
|
</system>
|
||||||
|
<system>
|
||||||
|
<fullname>Nintendo Wii</fullname>
|
||||||
|
<name>wii</name>
|
||||||
|
<manufacturer>Nintendo</manufacturer>
|
||||||
|
<release>2006</release>
|
||||||
|
<hardware>console</hardware>
|
||||||
|
<path>/storage/roms/wii</path>
|
||||||
|
<extension>.gcm .GCM .iso .ISO .gcz .GCZ .ciso .CISO .wbfs .WBFS .rvz .RVZ .dol .DOL</extension>
|
||||||
|
<command>/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers="%CONTROLLERSCONFIG%"</command>
|
||||||
|
<platform>wii</platform>
|
||||||
|
<theme>wii</theme>
|
||||||
|
<emulators>
|
||||||
|
<emulator name="dolphinsa-wii">
|
||||||
|
<cores>
|
||||||
|
<core default="true">dolphinsa-wii</core>
|
||||||
</cores>
|
</cores>
|
||||||
</emulator>
|
</emulator>
|
||||||
<emulator name="retroarch">
|
<emulator name="retroarch">
|
||||||
|
|
|
@ -796,19 +796,19 @@
|
||||||
<release>2001</release>
|
<release>2001</release>
|
||||||
<hardware>console</hardware>
|
<hardware>console</hardware>
|
||||||
<path>/storage/roms/gamecube</path>
|
<path>/storage/roms/gamecube</path>
|
||||||
<extension>.gcm .GCM .iso .ISO .gcz .GCZ .ciso .CISO .wbfs .WBFS .rvz .RVZ</extension>
|
<extension>.gcm .GCM .iso .ISO .gcz .GCZ .ciso .CISO .wbfs .WBFS .rvz .RVZ .dol .DOL</extension>
|
||||||
<command>/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers="%CONTROLLERSCONFIG%"</command>
|
<command>/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers="%CONTROLLERSCONFIG%"</command>
|
||||||
<platform>gc</platform>
|
<platform>gc</platform>
|
||||||
<theme>gc</theme>
|
<theme>gc</theme>
|
||||||
<emulators>
|
<emulators>
|
||||||
<emulator name="dolphinsa">
|
<emulator name="dolphinsa-gc">
|
||||||
<cores>
|
<cores>
|
||||||
<core>dolphinsa</core>
|
<core default="true">dolphinsa-gc</core>
|
||||||
</cores>
|
</cores>
|
||||||
</emulator>
|
</emulator>
|
||||||
<emulator name="retroarch">
|
<emulator name="retroarch">
|
||||||
<cores>
|
<cores>
|
||||||
<core default="true">dolphin</core>
|
<core>dolphin</core>
|
||||||
</cores>
|
</cores>
|
||||||
</emulator>
|
</emulator>
|
||||||
</emulators>
|
</emulators>
|
||||||
|
@ -820,14 +820,14 @@
|
||||||
<release>2006</release>
|
<release>2006</release>
|
||||||
<hardware>console</hardware>
|
<hardware>console</hardware>
|
||||||
<path>/storage/roms/wii</path>
|
<path>/storage/roms/wii</path>
|
||||||
<extension>.gcm .GCM .iso .ISO .gcz .GCZ .ciso .CISO .wbfs .WBFS .rvz .RVZ</extension>
|
<extension>.gcm .GCM .iso .ISO .gcz .GCZ .ciso .CISO .wbfs .WBFS .rvz .RVZ .dol .DOL</extension>
|
||||||
<command>/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers="%CONTROLLERSCONFIG%"</command>
|
<command>/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers="%CONTROLLERSCONFIG%"</command>
|
||||||
<platform>wii</platform>
|
<platform>wii</platform>
|
||||||
<theme>wii</theme>
|
<theme>wii</theme>
|
||||||
<emulators>
|
<emulators>
|
||||||
<emulator name="dolphinsa">
|
<emulator name="dolphinsa-wii">
|
||||||
<cores>
|
<cores>
|
||||||
<core default="true">dolphinsa</core>
|
<core default="true">dolphinsa-wii</core>
|
||||||
</cores>
|
</cores>
|
||||||
</emulator>
|
</emulator>
|
||||||
<emulator name="retroarch">
|
<emulator name="retroarch">
|
||||||
|
|
Loading…
Reference in a new issue