diff --git a/packages/emulators/standalone/supermodel-sa/scripts/start_supermodel.sh b/packages/emulators/standalone/supermodel-sa/scripts/start_supermodel.sh index b9c4ab948..3a96cce7b 100755 --- a/packages/emulators/standalone/supermodel-sa/scripts/start_supermodel.sh +++ b/packages/emulators/standalone/supermodel-sa/scripts/start_supermodel.sh @@ -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 ||: \ No newline at end of file +echo "Command: supermodel "${1}" ${OPTIONS}" >/var/log/exec.log 2>&1 +${EMUPERF} supermodel "${1}" ${OPTIONS} >>/var/log/exec.log 2>&1 ||: \ No newline at end of file diff --git a/packages/ui/emulationstation/config/common/es_features.cfg b/packages/ui/emulationstation/config/common/es_features.cfg index fb3f931de..a8df47133 100644 --- a/packages/ui/emulationstation/config/common/es_features.cfg +++ b/packages/ui/emulationstation/config/common/es_features.cfg @@ -764,11 +764,6 @@ - - - - - @@ -981,4 +976,25 @@ + + + + + + + + + + + + + + + + + + + + +