Added show_fps_limit if there are more than two limit values

This commit is contained in:
Boria138 2024-02-01 18:08:40 +06:00
parent 5f5e390d8e
commit 43d25b5026

@ -603,9 +603,13 @@ gui_MangoHud () {
done done
GUI_MH_FPS_RESULT="${GUI_MH_FPS_RESULT}" GUI_MH_FPS_RESULT="${GUI_MH_FPS_RESULT}"
if [ "$(echo "${GUI_MH_FPS_RESULT}" | awk -F'+' '{print $2}')" ] if [ "$(echo "${GUI_MH_FPS_RESULT}" | awk -F'+' '{print $2}')" ] ; then
then export PW_FPS_LIMIT="0+${GUI_MH_FPS_RESULT%+}" export PW_FPS_LIMIT="0+${GUI_MH_FPS_RESULT%+}"
else export PW_FPS_LIMIT="${GUI_MH_FPS_RESULT%+}" if [[ ! "${GUI_MH_RESULT}" =~ "show_fps_limit" ]] ; then
GUI_MH_RESULT="${GUI_MH_RESULT}show_fps_limit,"
fi
else
export PW_FPS_LIMIT="${GUI_MH_FPS_RESULT%+}"
fi fi
if [[ -n "$MH_FONT_SIZE" ]] if [[ -n "$MH_FONT_SIZE" ]]