* Add OpenGL/Vulkan selection feature to CEMU.

* Fix broken OpenGL for CEMU.
This commit is contained in:
fewtarius 2023-12-29 19:25:49 +00:00
parent b559146951
commit d235ddf23c
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
4 changed files with 20 additions and 3 deletions

View file

@ -65,12 +65,23 @@ FILE=$(echo $@ | sed "s#^/.*/##g")
ONLINE=$(get_setting online_enabled wiiu "${FILE}")
FPS=$(get_setting show_fps wiiu "${FILE}")
CON=$(get_setting wiiu_controller_profile wiiu "${FILE}")
RENDERER=$(get_setting graphics_backend wiiu "${FILE}")
if [ -z "${FPS}" ]
then
FPS="0"
fi
# Assume Vulkan
case ${RENDERER} in
opengl)
RENDERER=0
;;
*)
RENDERER=1
;;
esac
case ${CON} in
"Wii U Pro Controller")
CONFILE="wii_u_pro_controller.xml"
@ -100,6 +111,7 @@ xmlstarlet ed --inplace -u "//Account/OnlineEnabled" -v "${ONLINE}" ${CEMU_CONFI
xmlstarlet ed --inplace -u "//Overlay/Position" -v "${FPS}" ${CEMU_CONFIG_ROOT}/settings.xml
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
xmlstarlet ed --inplace -u "//Graphic/api" -v "${RENDERER}" ${CEMU_CONFIG_ROOT}/settings.xml
xmlstarlet ed --inplace -u "//emulated_controller/type" -v "${CON}" ${CEMU_CONFIG_ROOT}/controllerProfiles/controller0.xml
xmlstarlet ed --inplace -u "//emulated_controller/controller/uuid" -v "${UUID0}" ${CEMU_CONFIG_ROOT}/controllerProfiles/controller0.xml
xmlstarlet ed --inplace -u "//emulated_controller/controller/display_name" -v "${CONTROLLER0}" ${CEMU_CONFIG_ROOT}/controllerProfiles/controller0.xml

View file

@ -2,7 +2,7 @@
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="glfw"
PKG_VERSION="3eaf125"
PKG_VERSION="e2c9264"
PKG_ARCH="any"
PKG_LICENSE="zlib"
PKG_DEPENDS_TARGET="toolchain expat libdrm libxkbcommon libXrandr libXinerama libXcursor libXi Mako:host "

View file

@ -2,11 +2,12 @@
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="wxwidgets"
PKG_VERSION="299b51d493da28f919029c75c231e11114f1a420"
PKG_VERSION="a812fff"
#PKG_VERSION="c372724b3448de02a9135835f99f15a26e35f979"
PKG_LICENSE="wxWindows Library Licence"
PKG_SITE="https://github.com/wxWidgets/wxWidgets"
PKG_URL="${PKG_SITE}.git"
PKG_GIT_CLONE_BRANCH="3.2"
PKG_GIT_CLONE_BRANCH="3.2.2-hotfix"
PKG_DEPENDS_TARGET="toolchain zlib libpng libjpeg-turbo gdk-pixbuf gtk3 libaio"
PKG_LONGDESC="wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls."
PKG_BUILD_FLAGS="+pic"

View file

@ -484,6 +484,10 @@
<cores>
<core name="cemu-sa">
<features>
<feature name="graphics backend">
<choice name="opengl" value="opengl"/>
<choice name="vulkan" value="vulkan"/>
</feature>
<feature name="online enabled">
<choice name="no" value="false"/>
<choice name="yes" value="true"/>