Merge pull request #1962 from tiopex/cemu

Cemu: Add dual screen support
This commit is contained in:
tiopex
2025-11-05 21:54:45 +01:00
committed by GitHub
2 changed files with 17 additions and 0 deletions

View File

@@ -108,6 +108,7 @@ FILE=$(echo $1 | sed "s#^/.*/##g")
CON=$(get_setting wiiu_controller_profile wiiu "${FILE}")
CON_LAYOUT=$(get_setting wiiu_controller_layout wiiu "${FILE}")
ONLINE=$(get_setting online_enabled wiiu "${FILE}")
GAMEPAD=$(get_setting gamepad_enabled wiiu "${FILE}")
RENDERER=$(get_setting graphics_backend wiiu "${FILE}")
BACKEND=$(get_setting gdk_backend wiiu "${FILE}")
@@ -318,5 +319,17 @@ xmlstarlet ed --inplace -u "//Notification/TextColor" -v "${TEXT_COLOR}" ${CEMU_
xmlstarlet ed --inplace -u "//fullscreen" -v "true" ${CEMU_CONFIG_ROOT}/settings.xml
xmlstarlet ed --inplace -u "//Audio/TVDevice" -v "${PASINK}" ${CEMU_CONFIG_ROOT}/settings.xml
#
# Dual screen gamepad
#
if [ -z "${GAMEPAD}" ]; then
if [ "${DEVICE_HAS_DUAL_SCREEN}" = "true" ]; then
xmlstarlet ed --inplace -u "//open_pad" -v "true" ${CEMU_CONFIG_ROOT}/settings.xml
fi
else
xmlstarlet ed --inplace -u "//open_pad" -v "${GAMEPAD}" ${CEMU_CONFIG_ROOT}/settings.xml
fi
# Run the emulator
cemu -g "$@"

View File

@@ -890,6 +890,10 @@
<choice name="nintendo" value="nintendo"/>
<choice name="xbox" value="xbox"/>
</feature>
<feature name="gamepad enabled">
<choice name="no" value="false"/>
<choice name="yes" value="true"/>
</feature>
<feature name="online enabled">
<choice name="no" value="false"/>
<choice name="yes" value="true"/>