mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Add melonds-sa options for console type and direct boot
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user