Added supermodel features for rendering engine, vsync and resolution.

This commit is contained in:
KeyserSoze1 2024-04-06 16:06:02 -04:00
parent ad95281741
commit aa076d394a
2 changed files with 60 additions and 7 deletions

View file

@ -41,6 +41,43 @@ else
unset EMUPERF
fi
#Emulation Station Features
GAME=$(echo "${1}"| sed "s#^/.*/##")
VSYNC=$(get_setting vsync segamodel3 "${GAME}")
RESOLUTION=$(get_setting resolution segamodel3 "${GAME}")
ENGINE=$(get_setting rendering_engine segamodel3 "${GAME}")
OPTIONS=
#VSYNC
if [ "$VSYNC" = "true" ]
then
OPTIONS+=" -vsync"
elif [ "$VSYNC" = "false" ]
then
OPTIONS+=" -no-vsync"
fi
#ENGINE
if [ "$ENGINE" = "1" ]
then
OPTIONS+=" -new3d"
elif [ "$ENGINE" = "0" ]
then
OPTIONS+=" -legacy3d"
fi
#RESOLUTION
if [ "$RESOLUTION" = "1" ]
then
OPTIONS+=" -res=496,384"
elif [ "$RESOLUTION" = "2" ]
then
OPTIONS+=" -res=992,768"
else
OPTIONS+=" -fullscreen"
fi
cd ${CONFIG_DIR}
echo "Command: supermodel "${1}" -fullscreen" >/var/log/exec.log 2>&1
${EMUPERF} supermodel "${1}" -fullscreen >>/var/log/exec.log 2>&1 ||:
echo "Command: supermodel "${1}" ${OPTIONS}" >/var/log/exec.log 2>&1
${EMUPERF} supermodel "${1}" ${OPTIONS} >>/var/log/exec.log 2>&1 ||:

View file

@ -764,11 +764,6 @@
</cores>
</emulator>
<emulator name="pico-8" features="pixel_perfect" />
<emulator name="supermodel">
<cores>
<core name="supermodel-sa" />
</cores>
</emulator>
<emulator name="retroarch" features="ratio, smooth, shaders, pixel_perfect, latency_reduction, game_translation">
<cores>
<core name="2048" features="netplay, rewind, autosave" />
@ -981,4 +976,25 @@
</core>
</cores>
</emulator>
<emulator name="supermodel">
<cores>
<core name="supermodel-sa">
<features>
<feature name="resolution">
<choice name="Full (1395x1080)" value="0" />
<choice name="1x (496x384)" value="1" />
<choice name="2x (992x768)" value="2" />
</feature>
<feature name="vsync">
<choice name="on" value="true" />
<choice name="off" value="false" />
</feature>
<feature name="rendering engine">
<choice name="legacy (default)" value="0" />
<choice name="new" value="1" />
</feature>
</features>
</core>
</cores>
</emulator>
</features>