Add melonds-sa options for console type and direct boot

This commit is contained in:
Noxwell
2026-01-28 13:38:28 -06:00
parent 486cfce3ee
commit a191422e6d
2 changed files with 32 additions and 0 deletions

View File

@@ -37,6 +37,8 @@ fi
#Emulation Station Features
GAME=$(echo "${1}" | sed "s#^/.*/##")
PLATFORM=$(echo "${2}"| sed "s#^/.*/##")
CONTYPE=$(get_setting console_type "${PLATFORM}" "${GAME}")
DBOOT=$(get_setting direct_boot "${PLATFORM}" "${GAME}")
GRENDERER=$(get_setting graphics_backend "${PLATFORM}" "${GAME}")
IRES=$(get_setting internal_resolution "${PLATFORM}" "${GAME}")
SORIENTATION=$(get_setting screen_orientation "${PLATFORM}" "${GAME}")
@@ -51,6 +53,28 @@ unset EMUPERF
[ "${CORES}" = "little" ] && EMUPERF="${SLOW_CORES}"
[ "${CORES}" = "big" ] && EMUPERF="${FAST_CORES}"
#Console Type
if [ "$PLATFORM" = "ndsiware" ]
then
sed -i '/^ConsoleType=/c\ConsoleType=1' /storage/.config/melonDS/melonDS.ini
else if [ "$CONTYPE" > "0" ]
then
sed -i '/^ConsoleType=/c\ConsoleType=1' /storage/.config/melonDS/melonDS.ini
else
sed -i '/^ConsoleType=/c\ConsoleType=0' /storage/.config/melonDS/melonDS.ini
fi
#Direct Boot
if [ "$PLATFORM" = "ndsiware" ]
then
sed -i '/^ConsoleType=/c\DirectBoot=0' /storage/.config/melonDS/melonDS.ini
else if [ "$DBOOT" > "0" ]
then
sed -i '/^ConsoleType=/c\DirectBoot=1' /storage/.config/melonDS/melonDS.ini
else
sed -i '/^ConsoleType=/c\DirectBoot=0' /storage/.config/melonDS/melonDS.ini
fi
#Graphics Backend
if [ "$GRENDERER" > "0" ]; then
sed -i "/^ScreenUseGL=/c\ScreenUseGL=$GRENDERER" "${CONF_DIR}/${MELONDS_INI}"

View File

@@ -1068,6 +1068,14 @@
<cores>
<core name="melonds-sa">
<features>
<feature name="console type">
<choice name="ds" value="0"/>
<choice name="dsi" value="1"/>
</feature>
<feature name="direct boot">
<choice name="on" value="1"/>
<choice name="off" value="0"/>
</feature>
<feature name="graphics backend">
<choice name="software" value="0"/>
<choice name="opengl (classic)" value="1"/>