mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Merge pull request #1962 from tiopex/cemu
Cemu: Add dual screen support
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user